summaryrefslogtreecommitdiff
path: root/lib/uniname
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-07-07 13:23:02 +0000
committerBruno Haible <bruno@clisp.org>2007-07-07 13:23:02 +0000
commit9d4b4746356ce01a69b93294cd5fb6239bb059c9 (patch)
tree11816d78b667f346fe020209ab65fabdb2017012 /lib/uniname
parent919363c034b12712d2d9a416c1e1a722e2b05d32 (diff)
downloadgnulib-9d4b4746356ce01a69b93294cd5fb6239bb059c9.tar.gz
Comments.
Diffstat (limited to 'lib/uniname')
-rw-r--r--lib/uniname/uniname.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/uniname/uniname.c b/lib/uniname/uniname.c
index 371822c581..cf96c670c0 100644
--- a/lib/uniname/uniname.c
+++ b/lib/uniname/uniname.c
@@ -30,7 +30,13 @@
#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
-/* Table of Unicode character names, derived from UnicodeData.txt. */
+/* Table of Unicode character names, derived from UnicodeData.txt.
+ This table is generated in a way to minimize the memory footprint:
+ 1. its compiled size is small (less than 300 KB),
+ 2. it resides entirely in the text or read-only data segment of the
+ executable or shared library: the table contains only immediate
+ integers, no pointers, and the functions don't do heap allocation.
+ */
#include "uninames.h"
/* It contains:
static const char unicode_name_words[34594] = ...;