summaryrefslogtreecommitdiff
path: root/ext/date/zonetab.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2016-09-30 20:49:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-12 20:41:11 +0900
commit3fc10eff1e6dd63bc0daa753108072954adc89ac (patch)
treedea07c416db4a8cb4b5eb6cf8e56ef84caca0109 /ext/date/zonetab.h
parentd96feee37c2d109d0103f08985e85641a23108bf (diff)
downloadruby-3fc10eff1e6dd63bc0daa753108072954adc89ac.tar.gz
date_parse.c: trim off
* ext/date/date_parse.c (date_zone_to_diff): trim off by zone name length.
Diffstat (limited to 'ext/date/zonetab.h')
-rw-r--r--ext/date/zonetab.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/ext/date/zonetab.h b/ext/date/zonetab.h
index c76056d548..37df5b9e69 100644
--- a/ext/date/zonetab.h
+++ b/ext/date/zonetab.h
@@ -1,5 +1,5 @@
/* ANSI-C code produced by gperf version 3.1 */
-/* Command-line: gperf --ignore-case -E -C -c -P -p -j1 -i 1 -g -o -t -N zonetab zonetab.list */
+/* Command-line: gperf --ignore-case -C -c -P -p -j1 -i 1 -g -o -t -N zonetab zonetab.list */
/* Computed positions: -k'1-4,$' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
@@ -39,6 +39,12 @@ struct zone {
static const struct zone *zonetab();
#line 9 "zonetab.list"
struct zone;
+
+#define TOTAL_KEYWORDS 170
+#define MIN_WORD_LENGTH 1
+#define MAX_WORD_LENGTH 17
+#define MIN_HASH_VALUE 5
+#define MAX_HASH_VALUE 438
/* maximum key range = 434, duplicates = 0 */
#ifndef GPERF_DOWNCASE
@@ -495,15 +501,6 @@ static const struct stringpool_t stringpool_contents =
const struct zone *
zonetab (register const char *str, register size_t len)
{
- enum
- {
- TOTAL_KEYWORDS = 170,
- MIN_WORD_LENGTH = 1,
- MAX_WORD_LENGTH = 17,
- MIN_HASH_VALUE = 5,
- MAX_HASH_VALUE = 438
- };
-
static const struct zone wordlist[] =
{
{-1}, {-1}, {-1}, {-1}, {-1},