diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-10-18 19:06:52 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-10-18 19:06:52 +0200 |
commit | 27dae84ed92f1ef0300263091972338d12e78348 (patch) | |
tree | 7c52931f474fafb8a4bd4fd15ca3461c77cdecc2 /lib/unicase/special-casing-table.h | |
parent | 4682deeb62247d34de87f8e777f99e2d337fd377 (diff) |
New upstream version 1.4.1upstream/1.4.1upstream
Diffstat (limited to 'lib/unicase/special-casing-table.h')
-rw-r--r-- | lib/unicase/special-casing-table.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/unicase/special-casing-table.h b/lib/unicase/special-casing-table.h index 3681d2d9..1ceb1c56 100644 --- a/lib/unicase/special-casing-table.h +++ b/lib/unicase/special-casing-table.h @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -m 10 unicase/special-casing-table.gperf */ /* Computed positions: -k'1-3' */ @@ -50,6 +50,7 @@ gl_unicase_special_hash (register const char *str, register size_t len) 46, 122, 42, 41, 39, 122, 38, 35, 122, 122, 122, 0, 33, 122, 122, 122, 122 }; + (void) len; return asso_values[(unsigned char)str[2]+1] + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]]; } @@ -68,6 +69,10 @@ gl_unicase_special_lookup (register const char *str, register size_t len) 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }; +#if (defined __GNUC__ && __GNUC__ + (__GNUC_MINOR__ >= 6) > 4) || (defined __clang__ && __clang_major__ >= 3) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif static const struct special_casing_rule wordlist[] = { #line 150 "unicase/special-casing-table.gperf" @@ -315,6 +320,9 @@ gl_unicase_special_lookup (register const char *str, register size_t len) #line 155 "unicase/special-casing-table.gperf" {"\373\006\000", 0, SCC_ALWAYS , { '\0', '\0' }, { 0x0053, 0x0054, 0 }, { 0xFB06, 0, 0 }, { 0x0053, 0x0074, 0 }, { 0x0073, 0x0074, 0 }} }; +#if (defined __GNUC__ && __GNUC__ + (__GNUC_MINOR__ >= 6) > 4) || (defined __clang__ && __clang_major__ >= 3) +#pragma GCC diagnostic pop +#endif if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { @@ -329,5 +337,5 @@ gl_unicase_special_lookup (register const char *str, register size_t len) return &wordlist[key]; } } - return 0; + return (struct special_casing_rule *) 0; } |