Commit c9b87bed authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Spare 236 relocations, mark data as constant.

This saves 3 kbytes from stripped libvcccore here + speedup.
We can save another 1kbyte by removing the redumdant & and ; from the
table, but I am too lazy to update the algorithm accordingly.
parent 33ad65cc
......@@ -237,11 +237,11 @@ char *encode_URI_component( const char *psz_url )
return strdup( psz_enc );
}
static struct xml_entity_s
static const struct xml_entity_s
{
const char *psz_entity;
size_t i_length;
const char *psz_char;
char psz_entity[9];
uint8_t i_length;
char psz_char[4];
} p_xml_entities[] = {
/* Important: this list has to be in alphabetical order (psz_entity-wise) */
{ "Æ", 7, "Æ" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment