1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[intl] const in entities

This commit is contained in:
Witold Filipczyk 2022-01-31 16:47:50 +01:00
parent 5ea99371dd
commit e982333dd9
2 changed files with 4 additions and 4 deletions

View File

@ -1046,7 +1046,7 @@ get_translation_table(int from, int to)
}
static inline int
xxstrcmp(char *s1, char *s2, int l2)
xxstrcmp(const char *s1, const char *s2, int l2)
{
while (l2) {
if (*s1 > *s2) return 1;
@ -1091,8 +1091,8 @@ compare_entities(const void *key_, const void *element_)
struct string *key = (struct string *) key_;
struct entity *element = (struct entity *) element_;
int length = key->length;
char *first = key->source;
char *second = element->s;
const char *first = key->source;
const char *second = element->s;
return xxstrcmp(first, second, length);
}

View File

@ -1,6 +1,6 @@
/* Automatically generated by gen-ent */
static const struct entity { char *s; unicode_val_T c; } entities [1002] = {
static const struct entity { const 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 */