mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
genksyms: factor out APP for the ST_NORMAL state
For the ST_NORMAL state, APP is called regardless of the token type. Factor it out. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
90efe2b911
commit
6c3fb0bb4d
@ -176,10 +176,10 @@ repeat:
|
||||
switch (lexstate)
|
||||
{
|
||||
case ST_NORMAL:
|
||||
APP;
|
||||
switch (token)
|
||||
{
|
||||
case IDENT:
|
||||
APP;
|
||||
{
|
||||
int r = is_reserved_word(yytext, yyleng);
|
||||
if (r >= 0)
|
||||
@ -224,13 +224,11 @@ repeat:
|
||||
break;
|
||||
|
||||
case '[':
|
||||
APP;
|
||||
lexstate = ST_BRACKET;
|
||||
count = 1;
|
||||
goto repeat;
|
||||
|
||||
case '{':
|
||||
APP;
|
||||
if (dont_want_brace_phrase)
|
||||
break;
|
||||
lexstate = ST_BRACE;
|
||||
@ -238,12 +236,10 @@ repeat:
|
||||
goto repeat;
|
||||
|
||||
case '=': case ':':
|
||||
APP;
|
||||
lexstate = ST_EXPRESSION;
|
||||
break;
|
||||
|
||||
default:
|
||||
APP;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user