From 44a3eaeba04ef78835ca741592c376428ada5f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 2 Dec 2017 10:30:25 +0100 Subject: New upstream version 0.9.8 --- lib/unictype/joiningtype_byname.h | 90 ++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 48 deletions(-) (limited to 'lib/unictype/joiningtype_byname.h') diff --git a/lib/unictype/joiningtype_byname.h b/lib/unictype/joiningtype_byname.h index 37a95bb..6c0723d 100644 --- a/lib/unictype/joiningtype_byname.h +++ b/lib/unictype/joiningtype_byname.h @@ -1,5 +1,5 @@ -/* ANSI-C code produced by gperf version 3.0.4 */ -/* Command-line: gperf -m 10 ./unictype/joiningtype_byname.gperf */ +/* ANSI-C code produced by gperf version 3.1 */ +/* Command-line: gperf -m 10 ../../lib/unictype/joiningtype_byname.gperf */ /* Computed positions: -k'1' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ @@ -26,10 +26,10 @@ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) /* The character set is not based on ISO-646. */ -#error "gperf generated tables don't work with this execution character set. Please report a bug to ." +#error "gperf generated tables don't work with this execution character set. Please report a bug to ." #endif -#line 2 "./unictype/joiningtype_byname.gperf" +#line 2 "../../lib/unictype/joiningtype_byname.gperf" struct named_joining_type { int name; int joining_type; }; #define TOTAL_KEYWORDS 17 @@ -88,7 +88,7 @@ inline #endif #endif static unsigned int -joining_type_hash (register const char *str, register unsigned int len) +joining_type_hash (register const char *str, register size_t len) { static const unsigned char asso_values[] = { @@ -167,58 +167,52 @@ static const struct joining_type_stringpool_t joining_type_stringpool_contents = static const struct named_joining_type joining_type_names[] = { {-1}, -#line 16 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str1, UC_JOINING_TYPE_L}, -#line 17 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str2, UC_JOINING_TYPE_R}, -#line 19 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str3, UC_JOINING_TYPE_U}, -#line 14 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str4, UC_JOINING_TYPE_C}, -#line 15 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str5, UC_JOINING_TYPE_D}, +#line 16 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str1, UC_JOINING_TYPE_L}, +#line 17 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str2, UC_JOINING_TYPE_R}, +#line 19 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str3, UC_JOINING_TYPE_U}, +#line 14 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str4, UC_JOINING_TYPE_C}, +#line 15 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str5, UC_JOINING_TYPE_D}, {-1}, -#line 18 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str7, UC_JOINING_TYPE_T}, +#line 18 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str7, UC_JOINING_TYPE_T}, {-1}, {-1}, {-1}, -#line 25 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str11, UC_JOINING_TYPE_L}, -#line 24 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str12, UC_JOINING_TYPE_L}, -#line 27 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str13, UC_JOINING_TYPE_R}, -#line 26 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str14, UC_JOINING_TYPE_R}, -#line 23 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str15, UC_JOINING_TYPE_D}, -#line 22 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str16, UC_JOINING_TYPE_D}, -#line 28 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str17, UC_JOINING_TYPE_T}, -#line 30 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str18, UC_JOINING_TYPE_U}, -#line 29 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str19, UC_JOINING_TYPE_U}, -#line 21 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str20, UC_JOINING_TYPE_C}, -#line 20 "./unictype/joiningtype_byname.gperf" - {(int)(long)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str21, UC_JOINING_TYPE_C} +#line 25 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str11, UC_JOINING_TYPE_L}, +#line 24 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str12, UC_JOINING_TYPE_L}, +#line 27 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str13, UC_JOINING_TYPE_R}, +#line 26 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str14, UC_JOINING_TYPE_R}, +#line 23 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str15, UC_JOINING_TYPE_D}, +#line 22 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str16, UC_JOINING_TYPE_D}, +#line 28 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str17, UC_JOINING_TYPE_T}, +#line 30 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str18, UC_JOINING_TYPE_U}, +#line 29 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str19, UC_JOINING_TYPE_U}, +#line 21 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str20, UC_JOINING_TYPE_C}, +#line 20 "../../lib/unictype/joiningtype_byname.gperf" + {(int)(size_t)&((struct joining_type_stringpool_t *)0)->joining_type_stringpool_str21, UC_JOINING_TYPE_C} }; -#ifdef __GNUC__ -__inline -#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ -__attribute__ ((__gnu_inline__)) -#endif -#endif const struct named_joining_type * -uc_joining_type_lookup (register const char *str, register unsigned int len) +uc_joining_type_lookup (register const char *str, register size_t len) { if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { - register int key = joining_type_hash (str, len); + register unsigned int key = joining_type_hash (str, len); - if (key <= MAX_HASH_VALUE && key >= 0) + if (key <= MAX_HASH_VALUE) { register int o = joining_type_names[key].name; if (o >= 0) -- cgit v1.2.3