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:
parent
408d86f2b1
commit
974a5cdffd
@ -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 }
|
||||
};
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user