1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Make unicode_7b[] static const.

The .data section of src/intl/charsets.o is only 40 bytes now.
Inspired by bug 381.
This commit is contained in:
Kalle Olavi Niemitalo 2007-02-03 23:25:16 +02:00 committed by Kalle Olavi Niemitalo
parent 974a5cdffd
commit a6886634bc
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ N=`cat tmp | wc -l`
echo '/* Automatically generated by gen-7b */' echo '/* Automatically generated by gen-7b */'
echo '/* DO NOT EDIT THIS FILE! EDIT Unicode/7bitrepl.lnx INSTEAD! */' echo '/* DO NOT EDIT THIS FILE! EDIT Unicode/7bitrepl.lnx INSTEAD! */'
echo echo
echo 'struct { unicode_val_T x; unsigned char *s; } unicode_7b ['`expr $N + 1`'] = {' echo 'static const struct { unicode_val_T x; unsigned char *s; } unicode_7b ['`expr $N + 1`'] = {'
sort tmp | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | sed 's/^/ {/' | sed 's/:/, "/' | sed 's/$/"},/' sort tmp | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | sed 's/^/ {/' | sed 's/:/, "/' | sed 's/$/"},/'
echo ' {-1, NULL}' echo ' {-1, NULL}'
echo '};' echo '};'

View File

@ -1,7 +1,7 @@
/* Automatically generated by gen-7b */ /* Automatically generated by gen-7b */
/* DO NOT EDIT THIS FILE! EDIT Unicode/7bitrepl.lnx INSTEAD! */ /* DO NOT EDIT THIS FILE! EDIT Unicode/7bitrepl.lnx INSTEAD! */
struct { unicode_val_T x; unsigned char *s; } unicode_7b [2453] = { static const struct { unicode_val_T x; unsigned char *s; } unicode_7b [2453] = {
{0x00000000, "NUL"}, {0x00000000, "NUL"},
{0x00000001, "SH"}, {0x00000001, "SH"},
{0x00000002, "SX"}, {0x00000002, "SX"},