From 3001b7ba0b3d028afc7c0ff715eb83ebe41ef4ac Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 19 Feb 2011 17:12:43 +0100 Subject: [PATCH] unictype/property-byname: Reduce the size of the 'data' segment. * lib/unictype/pr_byname.gperf: Add gperf option '%pic'. --- ChangeLog | 5 +++++ lib/unictype/pr_byname.gperf | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ba8c88a192..d6fd3c62f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-02-19 Bruno Haible + + unictype/property-byname: Reduce the size of the 'data' segment. + * lib/unictype/pr_byname.gperf: Add gperf option '%pic'. + 2011-02-19 Bruno Haible unictype/scripts: Reduce the size of the 'data' segment. diff --git a/lib/unictype/pr_byname.gperf b/lib/unictype/pr_byname.gperf index 79de6e8d6a..c6b5a5dfaa 100644 --- a/lib/unictype/pr_byname.gperf +++ b/lib/unictype/pr_byname.gperf @@ -1,4 +1,4 @@ -struct named_property { const char *name; uc_property_t property; }; +struct named_property { int name; uc_property_t property; }; %struct-type %language=ANSI-C %define hash-function-name properties_hash @@ -7,6 +7,8 @@ struct named_property { const char *name; uc_property_t property; }; %readonly-tables %global-table %define word-array-name properties +%pic +%define string-pool-name properties_stringpool %% white_space, { &uc_is_property_white_space } alphabetic, { &uc_is_property_alphabetic } -- 2.30.2