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

Make entities[] static const.

Inspired by bug 381.
This commit is contained in:
Kalle Olavi Niemitalo 2007-02-03 19:51:45 +02:00 committed by Kalle Olavi Niemitalo
parent 408d86f2b1
commit 974a5cdffd
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ N=`cat tmp | wc -l`
cat > ../src/intl/entity.inc <<EOF
/* Automatically generated by gen-ent */
struct entity { char *s; unicode_val_T c; } entities [$(expr $N + 1)] = {
static const struct entity { char *s; unicode_val_T c; } entities [$(expr $N + 1)] = {
$(cat tmp)
{ NULL, 0 }
};

View File

@ -1,6 +1,6 @@
/* Automatically generated by gen-ent */
struct entity { char *s; unicode_val_T c; } entities [1002] = {
static const struct entity { char *s; unicode_val_T c; } entities [1002] = {
{ "AElig", 0x00C6 }, /* LATIN CAPITAL LETTER AE */
{ "Aacgr", 0x0386 }, /* GREEK CAPITAL LETTER ALPHA WITH TONOS */
{ "Aacute", 0x00C1 }, /* LATIN CAPITAL LETTER A WITH ACUTE */