[use-table] Adjust main() code

This commit is contained in:
Behdad Esfahbod 2022-07-28 09:34:23 -06:00
parent eaf7e5686c
commit 6e6b9cf972
2 changed files with 6 additions and 4 deletions

View File

@ -503,8 +503,9 @@ int main (int argc, char **argv)
{
if (argc != 2)
{
printf ("usage: %s hex-char\n", argv[0]);
return 1;
for (unsigned u = 0; u < 0x10FFFFu; u++)
printf ("U+%04X %d\n", u, hb_use_get_category (u));
return 0;
}
hb_codepoint_t u;

View File

@ -398,8 +398,9 @@ int main (int argc, char **argv)
{
if (argc != 2)
{
printf ("usage: %s hex-char\n", argv[0]);
return 1;
for (unsigned u = 0; u < 0x10FFFFu; u++)
printf ("U+%04X %d\n", u, hb_use_get_category (u));
return 0;
}
hb_codepoint_t u;