1 /* ANSI
-C code produced by gperf version
3.1 */
2 /* Command
-line
: ..
/src
/gperf
-j1
-i
1 -g
-o
-t
-N is_reserved_word
-k
'1,3,$' */
4 #
if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
5 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
6 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
7 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
8 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
9 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
10 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
11 && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
12 && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
13 && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
14 && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
15 && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
16 && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
17 && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
18 && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
19 && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
20 && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
21 && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
22 && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
23 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
24 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
25 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
26 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
27 /* The character
set is not based
on ISO
-646.
*/
28 #error
"gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
32 /* Command
-line
: gperf
-j1
-i
1 -g
-o
-t
-N is_reserved_word
-k1
,3,$ objc.gperf
*/
33 struct resword
{ char
*name; short token
; enum rid rid
; };
35 #
define TOTAL_KEYWORDS
59
36 #
define MIN_WORD_LENGTH
2
37 #
define MAX_WORD_LENGTH
15
38 #
define MIN_HASH_VALUE
8
39 #
define MAX_HASH_VALUE
95
40 /* maximum
key range
= 88, duplicates
= 0 */
50 hash
(register const char
*str
, register size_t len
)
52 static unsigned char asso_values
[] =
54 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
55 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
56 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
57 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
58 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
59 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
60 96, 96, 96, 96, 19, 96, 96, 96, 96, 96,
61 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
62 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
63 96, 96, 96, 96, 96, 2, 96, 2, 1, 10,
64 26, 1, 23, 27, 27, 24, 96, 1, 25, 36,
65 10, 34, 23, 96, 10, 6, 8, 11, 41, 2,
66 96, 96, 23, 96, 96, 96, 96, 96, 96, 96,
67 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
68 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
69 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
70 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
71 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
72 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
73 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
74 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
75 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
76 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
77 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
78 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
79 96, 96, 96, 96, 96, 96
81 register unsigned
int hval
= len
;
86 hval
+= asso_values
[(unsigned char
)str
[2]];
87 #
if defined __cplusplus
&& (__cplusplus
>= 201703L ||
(__cplusplus
>= 201103L && defined __clang_major__
&& defined __clang_minor__
&& __clang_major__
+ (__clang_minor__
>= 9) > 3))
89 #elif defined __GNUC__
&& __GNUC__
>= 7
90 __attribute__
((__fallthrough__
));
95 hval
+= asso_values
[(unsigned char
)str
[0]];
98 return hval
+ asso_values
[(unsigned char
)str
[len
- 1]];
102 is_reserved_word
(register const char
*str
, register size_t len
)
104 static struct resword wordlist
[] =
106 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
107 {"break", BREAK, NORID},
109 {"else", ELSE, NORID},
110 {"__asm__", ASM, NORID},
112 {"__attribute", ATTRIBUTE, NORID},
113 {"__alignof__", ALIGNOF, NORID},
114 {"__extension__", EXTENSION, NORID},
115 {"__attribute__", ATTRIBUTE, NORID},
116 {"__signed__", TYPESPEC, RID_SIGNED},
117 {"case", CASE, NORID},
118 {"__typeof__", TYPEOF, NORID},
119 {"__const__", TYPE_QUAL, RID_CONST},
120 {"static", SCSPEC, RID_STATIC},
121 {"extern", SCSPEC, RID_EXTERN},
122 {"char", TYPESPEC, RID_CHAR},
123 {"__const", TYPE_QUAL, RID_CONST},
125 {"continue", CONTINUE, NORID},
126 {"struct", STRUCT, NORID},
127 {"@defs", DEFS, NORID},
128 {"while", WHILE, NORID},
129 {"const", TYPE_QUAL, RID_CONST},
130 {"return", RETURN, NORID},
131 {"__inline", SCSPEC, RID_INLINE},
132 {"__alignof", ALIGNOF, NORID},
133 {"@encode", ENCODE, NORID},
134 {"__inline__", SCSPEC, RID_INLINE},
135 {"@selector", SELECTOR, NORID},
136 {"@interface", INTERFACE, NORID},
137 {"__typeof", TYPEOF, NORID},
138 {"__signed", TYPESPEC, RID_SIGNED},
139 {"int", TYPESPEC, RID_INT},
140 {"double", TYPESPEC, RID_DOUBLE},
141 {"__asm", ASM, NORID},
143 {"@public", PUBLIC, NORID},
144 {"auto", SCSPEC, RID_AUTO},
146 {"union", UNION, NORID},
147 {"unsigned", TYPESPEC, RID_UNSIGNED},
148 {"enum", ENUM, NORID},
149 {"short", TYPESPEC, RID_SHORT},
150 {"__volatile", TYPE_QUAL, RID_VOLATILE},
151 {"register", SCSPEC, RID_REGISTER},
152 {"inline", SCSPEC, RID_INLINE},
153 {"__volatile__", TYPE_QUAL, RID_VOLATILE},
154 {"sizeof", SIZEOF, NORID},
155 {"@end", END, NORID},
156 {"typeof", TYPEOF, NORID},
157 {"typedef", SCSPEC, RID_TYPEDEF},
159 {"switch", SWITCH, NORID},
160 {"default", DEFAULT, NORID},
161 {"signed", TYPESPEC, RID_SIGNED},
162 {"long", TYPESPEC, RID_LONG},
164 {"float", TYPESPEC, RID_FLOAT},
166 {"goto", GOTO, NORID},
168 {"volatile", TYPE_QUAL, RID_VOLATILE},
172 {"@implementation", IMPLEMENTATION, NORID},
173 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
174 {""}, {""}, {""}, {""}, {""},
175 {"void", TYPESPEC, RID_VOID}
178 if (len
<= MAX_WORD_LENGTH
&& len
>= MIN_WORD_LENGTH
)
180 register unsigned
int key = hash
(str
, len
);
182 if (key <= MAX_HASH_VALUE
)
184 register const char
*s
= wordlist
[key].
name;
186 if (*str
== *s
&& !strcmp
(str
+ 1, s
+ 1))
187 return &wordlist
[key];