Imported Upstream version 2.3.1
[platform/upstream/harfbuzz.git] / src / gen-indic-table.py
index 6252664..6532ee7 100755 (executable)
@@ -102,7 +102,7 @@ for h in headers:
                print (" * %s" % (l.strip()))
 print (" */")
 print ()
-print ('#include "hb-ot-shape-complex-indic-private.hh"')
+print ('#include "hb-ot-shape-complex-indic.hh"')
 print ()
 
 # Shorten values
@@ -131,6 +131,8 @@ for i in range (2):
 
 what = ["INDIC_SYLLABIC_CATEGORY", "INDIC_MATRA_CATEGORY"]
 what_short = ["ISC", "IMC"]
+print ('#pragma GCC diagnostic push')
+print ('#pragma GCC diagnostic ignored "-Wunused-macros"')
 for i in range (2):
        print ()
        vv = sorted (values[i].keys ())
@@ -148,6 +150,7 @@ for i in range (2):
                        (what_short[i], s, what[i], v.upper (),
                        '       '* ((48-1 - len (what[i]) - 1 - len (v)) // 8),
                        values[i][v], v))
+print ('#pragma GCC diagnostic pop')
 print ()
 print ("#define _(S,M) INDIC_COMBINE_CATEGORIES (ISC_##S, IMC_##M)")
 print ()