mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
utf8char_len_tab[] is const.
This change moves 256 bytes of data into a read-only section, perhaps reducing memory consumption when multiple ELinks processes run in parallel.
This commit is contained in:
parent
000883bbbe
commit
e45f5a8915
@ -251,7 +251,7 @@ encode_utf8(unicode_val_T u)
|
||||
#ifdef CONFIG_UTF8
|
||||
/* Number of bytes utf8 character indexed by first byte. Illegal bytes are
|
||||
* equal ones and handled different. */
|
||||
static char utf8char_len_tab[256] = {
|
||||
static const char utf8char_len_tab[256] = {
|
||||
1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,
|
||||
|
Loading…
Reference in New Issue
Block a user