diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gen-script-for-lang.c | 4 | ||||
-rwxr-xr-x | tools/gen-script-table.pl | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c index 707a1abe..0e1f5f76 100644 --- a/tools/gen-script-for-lang.c +++ b/tools/gen-script-for-lang.c @@ -122,8 +122,12 @@ scripts_for_line (const char *base_dir, pango_skip_space (&p); } + + /* The rest of the line is ignored */ + /* if (*p != '\0') goto err; + */ for (ch = start_char; ch <= end_char; ch++) { diff --git a/tools/gen-script-table.pl b/tools/gen-script-table.pl index 73cd72f9..da181f87 100755 --- a/tools/gen-script-table.pl +++ b/tools/gen-script-table.pl @@ -77,7 +77,7 @@ for (my $c = 0; $c < $easy_range; $c++) { } if ($c < $start) { - printf " PANGO_SCRIPT_COMMON,"; + printf " PANGO_SCRIPT_UNKNOWN,"; } else { printf " PANGO_SCRIPT_%s,", $script; } @@ -112,9 +112,7 @@ for (; $i <= $#ranges; $i++) { $end = $ranges[$i]->[1]; } - if ($script ne "COMMON") { - printf " { %#06x, %5d, PANGO_SCRIPT_%s },\n", $start, $end - $start + 1, $script; - } + printf " { %#06x, %5d, PANGO_SCRIPT_%s },\n", $start, $end - $start + 1, $script; } printf "};\n"; |