X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2Fmisc%2Ftable2h;h=c45acf5336dbecc212d8c29e4ed1df851d46dc68;hb=d9820b2d7d4b908bb9da441f5a35a7999d701e60;hp=81bbb185493bab7e2a2ce7842f4be119357bff2f;hpb=abba9373525dbfa8fb8dfcb0505e7ae682357983;p=libucw.git diff --git a/charset/misc/table2h b/charset/misc/table2h index 81bbb185..c45acf53 100755 --- a/charset/misc/table2h +++ b/charset/misc/table2h @@ -20,7 +20,7 @@ print "/* Generated automatically by gentab. Please don't edit. */\n\n"; for($i=0; $i<256; $i++) { $x = sprintf("%02X", $i); if (defined($table{$x})) { - print "static $type $table{$x}\[256\] = \{\n"; + print "static const $type $table{$x}\[256\] = \{\n"; for($j=0; $j<256; $j++) { $y = $x . sprintf("%02X", $j); if ($val{$y}) { print $val{$y}; } @@ -32,7 +32,7 @@ for($i=0; $i<256; $i++) { } } -print "$type \*$name\[256\] = \{\n"; +print "const $type \*$name\[256\] = \{\n"; for($j=0; $j<256; $j++) { $y = sprintf("%02X", $j); if (defined $table{$y}) { print $table{$y}; }