1 /* ANSI
-C code produced by gperf version
3.1 */
2 /* Command
-line
: ..
/src
/gperf
-t
*/
3 /* Computed positions
: -k
'1,3' */
5 #
if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
6 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
7 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
8 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
9 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
10 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
11 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
12 && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
13 && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
14 && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
15 && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
16 && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
17 && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
18 && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
19 && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
20 && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
21 && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
22 && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
23 && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
24 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
25 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
26 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
27 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
28 /* The character
set is not based
on ISO
-646.
*/
29 #error
"gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
34 #
define TOTAL_KEYWORDS
12
35 #
define MIN_WORD_LENGTH
3
36 #
define MAX_WORD_LENGTH
9
37 #
define MIN_HASH_VALUE
3
38 #
define MAX_HASH_VALUE
18
39 /* maximum
key range
= 16, duplicates
= 0 */
49 hash
(register const char
*str
, register size_t len
)
51 static unsigned char asso_values
[] =
53 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
54 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
55 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
56 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
57 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
58 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
59 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
60 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
61 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
62 19, 19, 19, 19, 19, 19, 19, 5, 5, 5,
63 0, 19, 5, 0, 19, 19, 0, 19, 10, 0,
64 0, 5, 0, 19, 0, 0, 0, 19, 0, 19,
65 19, 0, 19, 19, 19, 19, 19, 19, 19, 19,
66 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
67 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
68 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
69 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
70 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
71 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
72 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
73 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
74 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
75 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
76 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
77 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
78 19, 19, 19, 19, 19, 19
80 return len
+ asso_values
[(unsigned char
)str
[2]] + asso_values
[(unsigned char
)str
[0]];
84 in_word_set
(register const char
*str
, register size_t len
)
86 static struct month wordlist
[] =
93 {"january", 1, 31, 31},
94 {"november", 11, 30, 30},
95 {"september", 9, 30, 30},
97 {"august", 8, 31, 31},
98 {"october", 10, 31, 31},
99 {"december", 12, 31, 31},
102 {"february", 2, 28, 29}
105 if (len
<= MAX_WORD_LENGTH
&& len
>= MIN_WORD_LENGTH
)
107 register unsigned
int key = hash
(str
, len
);
109 if (key <= MAX_HASH_VALUE
)
111 register const char
*s
= wordlist
[key].
name;
113 if (*str
== *s
&& !strcmp
(str
+ 1, s
+ 1))
114 return &wordlist
[key];