diff --git a/Unicode/gen-7b b/Unicode/gen-7b index 41a746d53..de3876ce7 100755 --- a/Unicode/gen-7b +++ b/Unicode/gen-7b @@ -8,7 +8,7 @@ N=`cat tmp | wc -l` echo '/* Automatically generated by gen-7b */' echo '/* DO NOT EDIT THIS FILE! EDIT Unicode/7bitrepl.lnx INSTEAD! */' 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/$/"},/' echo ' {-1, NULL}' echo '};' diff --git a/src/intl/uni_7b.inc b/src/intl/uni_7b.inc index e8491ed05..44f525b43 100644 --- a/src/intl/uni_7b.inc +++ b/src/intl/uni_7b.inc @@ -1,7 +1,7 @@ /* Automatically generated by gen-7b */ /* 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"}, {0x00000001, "SH"}, {0x00000002, "SX"},