[indic-generator] Move INDIC_COMBINE_CATEGORIES here

This commit is contained in:
Behdad Esfahbod committed 2022-06-10 06:20:10 -06:00
1 parent b030dd9e88
commit 165ef55e57
3 files changed
+6 -2

No files matched your search

+3
View File
@@ -553,6 +553,8 @@ for s in what_short:
print ()
print ('#pragma GCC diagnostic pop')
print ()
print ("#define INDIC_COMBINE_CATEGORIES(S,M) ((S) | ((M) << 8))")
print ()
print ("#define _(S,M) INDIC_COMBINE_CATEGORIES (%s_##S, %s_##M)" % tuple(what_short))
print ()
print ()
@@ -648,6 +650,7 @@ print (" return _(X,X);")
print ("}")
print ()
print ("#undef _")
print ("#undef INDIC_COMBINE_CATEGORIES")
for i in range (2):
print ()
vv = sorted (values[i].keys ())
+3
View File
@@ -74,6 +74,8 @@
#pragma GCC diagnostic pop
#define INDIC_COMBINE_CATEGORIES(S,M) ((S) | ((M) << 8))
#define _(S,M) INDIC_COMBINE_CATEGORIES (_OT_##S, _POS_##M)
@@ -482,6 +484,7 @@ hb_indic_get_categories (hb_codepoint_t u)
}
#undef _
#undef INDIC_COMBINE_CATEGORIES
#undef _OT_A
#undef _OT_As
-2
View File
@@ -133,8 +133,6 @@ enum ot_position_t {
};
#define INDIC_COMBINE_CATEGORIES(S,M) ((S) | ((M) << 8))
HB_INTERNAL uint16_t
hb_indic_get_categories (hb_codepoint_t u);