From: Martin Mares Date: Sat, 11 Oct 2003 10:16:55 +0000 (+0000) Subject: Constified. X-Git-Tag: holmes-import~1191 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6950d8072990d55ab7a3894c4bb2aab43ff2a7f1;p=libucw.git Constified. --- 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}; }