summaryrefslogtreecommitdiff
path: root/lib/unictype/joininggroup_byname.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unictype/joininggroup_byname.h')
-rw-r--r--lib/unictype/joininggroup_byname.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/lib/unictype/joininggroup_byname.h b/lib/unictype/joininggroup_byname.h
index ac00ad9..e62d36d 100644
--- a/lib/unictype/joininggroup_byname.h
+++ b/lib/unictype/joininggroup_byname.h
@@ -1,4 +1,4 @@
-/* ANSI-C code produced by gperf version 3.1 */
+/* ANSI-C code produced by gperf version 3.2 */
/* Command-line: gperf -m 10 ./unictype/joininggroup_byname.gperf */
/* Computed positions: -k'1-2,10-12,$' */
@@ -41,7 +41,7 @@ struct named_joining_group { int name; int joining_group; };
#ifndef GPERF_DOWNCASE
#define GPERF_DOWNCASE 1
-static unsigned char gperf_downcase[256] =
+static const unsigned char gperf_downcase[256] =
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
@@ -125,12 +125,27 @@ joining_group_hash (register const char *str, register size_t len)
{
default:
hval += asso_values[(unsigned char)str[11]+1];
+#if defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang_major__ && defined __clang_minor__ && __clang_major__ + (__clang_minor__ >= 9) > 3))
+ [[fallthrough]];
+#elif defined __GNUC__ && __GNUC__ >= 7
+ __attribute__ ((__fallthrough__));
+#endif
/*FALLTHROUGH*/
case 11:
hval += asso_values[(unsigned char)str[10]];
+#if defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang_major__ && defined __clang_minor__ && __clang_major__ + (__clang_minor__ >= 9) > 3))
+ [[fallthrough]];
+#elif defined __GNUC__ && __GNUC__ >= 7
+ __attribute__ ((__fallthrough__));
+#endif
/*FALLTHROUGH*/
case 10:
hval += asso_values[(unsigned char)str[9]];
+#if defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang_major__ && defined __clang_minor__ && __clang_major__ + (__clang_minor__ >= 9) > 3))
+ [[fallthrough]];
+#elif defined __GNUC__ && __GNUC__ >= 7
+ __attribute__ ((__fallthrough__));
+#endif
/*FALLTHROUGH*/
case 9:
case 8:
@@ -141,6 +156,11 @@ joining_group_hash (register const char *str, register size_t len)
case 3:
case 2:
hval += asso_values[(unsigned char)str[1]];
+#if defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang_major__ && defined __clang_minor__ && __clang_major__ + (__clang_minor__ >= 9) > 3))
+ [[fallthrough]];
+#elif defined __GNUC__ && __GNUC__ >= 7
+ __attribute__ ((__fallthrough__));
+#endif
/*FALLTHROUGH*/
case 1:
hval += asso_values[(unsigned char)str[0]];