Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -5
+1 -5
scripts/genksyms/lex.l
··· 176 176 switch (lexstate) 177 177 { 178 178 case ST_NORMAL: 179 + APP; 179 180 switch (token) 180 181 { 181 182 case IDENT: 182 - APP; 183 183 { 184 184 int r = is_reserved_word(yytext, yyleng); 185 185 if (r >= 0) ··· 224 224 break; 225 225 226 226 case '[': 227 - APP; 228 227 lexstate = ST_BRACKET; 229 228 count = 1; 230 229 goto repeat; 231 230 232 231 case '{': 233 - APP; 234 232 if (dont_want_brace_phrase) 235 233 break; 236 234 lexstate = ST_BRACE; ··· 236 238 goto repeat; 237 239 238 240 case '=': case ':': 239 - APP; 240 241 lexstate = ST_EXPRESSION; 241 242 break; 242 243 243 244 default: 244 - APP; 245 245 break; 246 246 } 247 247 break;