mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[intl] const in entities
This commit is contained in:
parent
5ea99371dd
commit
e982333dd9
@ -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);
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user