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:
parent
974a5cdffd
commit
a6886634bc
@ -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 '};'
|
||||||
|
@ -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"},
|
||||||
|
Loading…
Reference in New Issue
Block a user