Skip to content

Commit

Permalink
kbuild: Regenerate genksyms lexer
Browse files Browse the repository at this point in the history
Update the lexer after 4fab916 ("kbuild: genksyms fix for typeof
handling").

Signed-off-by: Michal Marek <mmarek@suse.com>
  • Loading branch information
Michal Marek committed Aug 25, 2016
1 parent 4fab916 commit 5c6f322
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions scripts/genksyms/lex.lex.c_shipped
Original file line number Diff line number Diff line change
Expand Up @@ -2098,6 +2098,23 @@ repeat:
}
break;

case ST_TYPEOF_1:
if (token == IDENT)
{
if (is_reserved_word(yytext, yyleng)
|| find_symbol(yytext, SYM_TYPEDEF, 1))
{
yyless(0);
unput('(');
lexstate = ST_NORMAL;
token = TYPEOF_KEYW;
break;
}
_APP("(", 1);
}
lexstate = ST_TYPEOF;
/* FALLTHRU */

case ST_TYPEOF:
switch (token)
{
Expand All @@ -2122,24 +2139,6 @@ repeat:
}
break;

case ST_TYPEOF_1:
if (token == IDENT)
{
if (is_reserved_word(yytext, yyleng)
|| find_symbol(yytext, SYM_TYPEDEF, 1))
{
yyless(0);
unput('(');
lexstate = ST_NORMAL;
token = TYPEOF_KEYW;
break;
}
_APP("(", 1);
}
APP;
lexstate = ST_TYPEOF;
goto repeat;

case ST_BRACKET:
APP;
switch (token)
Expand Down

0 comments on commit 5c6f322

Please sign in to comment.