[use-table] Fix previous commit
This commit is contained in:
parent
0788f77371
commit
0c5b60acbd
|
@ -497,7 +497,7 @@ for k,v in sorted(use_positions.items()):
|
||||||
tag = k + suf
|
tag = k + suf
|
||||||
print ("#undef %s" % tag)
|
print ("#undef %s" % tag)
|
||||||
print ()
|
print ()
|
||||||
print ("""
|
print (r"""
|
||||||
#ifdef HB_USE_TABLE_MAIN
|
#ifdef HB_USE_TABLE_MAIN
|
||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -398,16 +398,14 @@ int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc != 2)
|
if (argc != 2)
|
||||||
{
|
{
|
||||||
printf ("usage: %s hex-char
|
printf ("usage: %s hex-char\n", argv[0]);
|
||||||
", argv[0]);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
hb_codepoint_t u;
|
hb_codepoint_t u;
|
||||||
sscanf (argv[1], "%x", &u);
|
sscanf (argv[1], "%x", &u);
|
||||||
|
|
||||||
printf ("%d
|
printf ("%d\n", hb_use_get_category (u));
|
||||||
", hb_use_get_category (u));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue