summaryrefslogtreecommitdiff
path: root/utf8proc.h
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@mit.edu>2015-12-09 18:59:05 -0500
committerSteven G. Johnson <stevenj@mit.edu>2015-12-09 18:59:05 -0500
commitec0daa50bbedc36a0bada4a0f713eb9dc317d444 (patch)
treeb5d9e30e82726519ef42f1ebdb94b84c34ca0201 /utf8proc.h
parent6b510deff274dc79b4e324abef5fbb45a8162861 (diff)
parentee3c20e46b655deec663ef09b1b456f333675699 (diff)
downloadlibutf8proc-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/utf8proc.h b/utf8proc.h
index 32887e7..a8d53fc 100644
--- a/utf8proc.h
+++ b/utf8proc.h
@@ -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;