From: Bruno Haible Date: Sat, 19 Feb 2011 16:12:43 +0000 (+0100) Subject: unictype/property-byname: Reduce the size of the 'data' segment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3001b7ba0b3d028afc7c0ff715eb83ebe41ef4ac;p=pspp unictype/property-byname: Reduce the size of the 'data' segment. * lib/unictype/pr_byname.gperf: Add gperf option '%pic'. --- 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 }