X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2Fmisc%2Fgen-ligatures;h=17469ea645e9d251987f607f7bdf523819047e1d;hb=5da13cd16371faa6df5b880387b5b172a1704aef;hp=8ebe71e67a839b8eb2a41e3705dc1ccd476d969b;hpb=2765481cdddd496e08cf7bc1288cdf3173074eb8;p=libucw.git diff --git a/charset/misc/gen-ligatures b/charset/misc/gen-ligatures index 8ebe71e6..17469ea6 100755 --- a/charset/misc/gen-ligatures +++ b/charset/misc/gen-ligatures @@ -62,11 +62,11 @@ my @ht = map { "NULL" } 1..$div; foreach my $l (keys %ligs) { my $i = (hex $l) % $div; my $w = join(", ", map { "0x$_" } split(/ /, expand($l))); - $ht[$i] = "/* $l */ (const word []) { $w, 0 }"; + $ht[$i] = "/* $l */ (const u16 []) { $w, 0 }"; } print "#define LIG_HASH_SIZE $div\n\n"; -print "static const word *_U_lig_hash[] = {\n"; +print "static const u16 *_U_lig_hash[] = {\n"; for (my $i=0; $i<$div; $i++) { print "\t", $ht[$i], ",\n"; }