diff options
Diffstat (limited to 'ext/date/zonetab.h')
-rw-r--r-- | ext/date/zonetab.h | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/ext/date/zonetab.h b/ext/date/zonetab.h index 4682c2cdbc..2a2e8910c9 100644 --- a/ext/date/zonetab.h +++ b/ext/date/zonetab.h @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.3 */ +/* ANSI-C code produced by gperf version 3.1 */ /* Command-line: gperf --ignore-case -L ANSI-C -C -c -P -p -j1 -i 1 -g -o -t -N zonetab zonetab.list */ /* Computed positions: -k'1-4,9' */ @@ -51,7 +51,7 @@ struct zone; #ifndef GPERF_DOWNCASE #define GPERF_DOWNCASE 1 -static const unsigned char gperf_downcase[256] = +static 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, @@ -144,11 +144,6 @@ hash (register const char *str, register size_t len) { default: hval += asso_values[(unsigned char)str[8]]; -#if (defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang__ && __clang_major__ + (__clang_minor__ >= 9) > 3))) || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 202000L && ((defined __GNUC__ && __GNUC__ >= 10) || (defined __clang__ && __clang_major__ >= 9))) - [[fallthrough]]; -#elif (defined __GNUC__ && __GNUC__ >= 7) || (defined __clang__ && __clang_major__ >= 10) - __attribute__ ((__fallthrough__)); -#endif /*FALLTHROUGH*/ case 8: case 7: @@ -156,27 +151,12 @@ hash (register const char *str, register size_t len) case 5: case 4: hval += asso_values[(unsigned char)str[3]]; -#if (defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang__ && __clang_major__ + (__clang_minor__ >= 9) > 3))) || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 202000L && ((defined __GNUC__ && __GNUC__ >= 10) || (defined __clang__ && __clang_major__ >= 9))) - [[fallthrough]]; -#elif (defined __GNUC__ && __GNUC__ >= 7) || (defined __clang__ && __clang_major__ >= 10) - __attribute__ ((__fallthrough__)); -#endif /*FALLTHROUGH*/ case 3: hval += asso_values[(unsigned char)str[2]]; -#if (defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang__ && __clang_major__ + (__clang_minor__ >= 9) > 3))) || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 202000L && ((defined __GNUC__ && __GNUC__ >= 10) || (defined __clang__ && __clang_major__ >= 9))) - [[fallthrough]]; -#elif (defined __GNUC__ && __GNUC__ >= 7) || (defined __clang__ && __clang_major__ >= 10) - __attribute__ ((__fallthrough__)); -#endif /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]+6]; -#if (defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang__ && __clang_major__ + (__clang_minor__ >= 9) > 3))) || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 202000L && ((defined __GNUC__ && __GNUC__ >= 10) || (defined __clang__ && __clang_major__ >= 9))) - [[fallthrough]]; -#elif (defined __GNUC__ && __GNUC__ >= 7) || (defined __clang__ && __clang_major__ >= 10) - __attribute__ ((__fallthrough__)); -#endif /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]+52]; @@ -827,10 +807,6 @@ static const struct stringpool_t stringpool_contents = const struct zone * zonetab (register const char *str, register size_t len) { -#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 zone wordlist[] = { {-1}, {-1}, @@ -1565,9 +1541,6 @@ zonetab (register const char *str, register size_t len) #line 141 "zonetab.list" {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str619, -10800} }; -#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) { @@ -1585,7 +1558,7 @@ zonetab (register const char *str, register size_t len) } } } - return (struct zone *) 0; + return 0; } #line 330 "zonetab.list" |