diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2015-12-09 18:59:05 -0500 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2015-12-09 18:59:05 -0500 |
commit | ec0daa50bbedc36a0bada4a0f713eb9dc317d444 (patch) | |
tree | b5d9e30e82726519ef42f1ebdb94b84c34ca0201 /utf8proc.h | |
parent | 6b510deff274dc79b4e324abef5fbb45a8162861 (diff) | |
parent | ee3c20e46b655deec663ef09b1b456f333675699 (diff) | |
download | libutf8proc-ec0daa50bbedc36a0bada4a0f713eb9dc317d444.tar.gz libutf8proc-ec0daa50bbedc36a0bada4a0f713eb9dc317d444.tar.bz2 |
Merge pull request #62 from michaelnmmeyer/master
Reduce the size of the binary.
Diffstat (limited to 'utf8proc.h')
-rw-r--r-- | utf8proc.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -132,6 +132,10 @@ extern "C" { #define SSIZE_MAX ((size_t)SIZE_MAX/2) #endif +#ifndef UINT16_MAX +# define UINT16_MAX ~(utf8proc_uint16_t)0 +#endif + /** * Option flags used by several functions in the library. */ @@ -238,8 +242,8 @@ typedef struct utf8proc_property_struct { * @see utf8proc_decomp_type_t. */ utf8proc_propval_t decomp_type; - const utf8proc_int32_t *decomp_mapping; - const utf8proc_int32_t *casefold_mapping; + utf8proc_uint16_t decomp_mapping; + utf8proc_uint16_t casefold_mapping; utf8proc_int32_t uppercase_mapping; utf8proc_int32_t lowercase_mapping; utf8proc_int32_t titlecase_mapping; |