diff options
Diffstat (limited to 'scripts/genksyms/lex.l')
-rw-r--r-- | scripts/genksyms/lex.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/genksyms/lex.l b/scripts/genksyms/lex.l index 5235aa507ba5..5dc25ee01c77 100644 --- a/scripts/genksyms/lex.l +++ b/scripts/genksyms/lex.l | |||
@@ -94,7 +94,7 @@ MC_TOKEN ([~%^&*+=|<>/-]=)|(&&)|("||")|(->)|(<<)|(>>) | |||
94 | 94 | ||
95 | /* Bring in the keyword recognizer. */ | 95 | /* Bring in the keyword recognizer. */ |
96 | 96 | ||
97 | #include "keywords.hash.c" | 97 | #include "keywords.c" |
98 | 98 | ||
99 | 99 | ||
100 | /* Macros to append to our phrase collection list. */ | 100 | /* Macros to append to our phrase collection list. */ |
@@ -186,10 +186,10 @@ repeat: | |||
186 | case IDENT: | 186 | case IDENT: |
187 | APP; | 187 | APP; |
188 | { | 188 | { |
189 | const struct resword *r = is_reserved_word(yytext, yyleng); | 189 | int r = is_reserved_word(yytext, yyleng); |
190 | if (r) | 190 | if (r >= 0) |
191 | { | 191 | { |
192 | switch (token = r->token) | 192 | switch (token = r) |
193 | { | 193 | { |
194 | case ATTRIBUTE_KEYW: | 194 | case ATTRIBUTE_KEYW: |
195 | lexstate = ST_ATTRIBUTE; | 195 | lexstate = ST_ATTRIBUTE; |