From e45f5a8915b7169e4bfe6475b736adf344f97b8f Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 1 Jan 2007 17:18:05 +0200 Subject: [PATCH] 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. --- src/intl/charsets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index 0d334713..125f374f 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -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,