unictype/property-byname: Reduce the number of load-time relocations.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Mar 2011 14:36:15 +0000 (15:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Mar 2011 14:36:15 +0000 (15:36 +0100)
commit4e51bc98a29b92fb5389c72a769f89c2a1d14158
tree6703b1d69502773c9915c0d49c34a915c4af8a48
parente6c834a460dd936a30282e9e873637a66af6f44f
unictype/property-byname: Reduce the number of load-time relocations.

* lib/unictype/pr_byname.c: Include <stdlib.h>.
(UC_PROPERTY_INDEX_*): New enumeration values.
(uc_property_byname): Convert an index from the lookup table to an
uc_property_t.
* lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
values.
ChangeLog
lib/unictype/pr_byname.c
lib/unictype/pr_byname.gperf