mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
kconfig: narrow the scope of variables in the lexer
The variables, "ts" and "i", are used locally in the action of the [ \t]+ pattern in the <HELP> start state. Define them where they are used. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
d05377e184
commit
65017d8381
@ -85,7 +85,6 @@ n [A-Za-z0-9_-]
|
||||
|
||||
%%
|
||||
int str = 0;
|
||||
int ts, i;
|
||||
|
||||
#.* /* ignore comment */
|
||||
[ \t]* /* whitespaces */
|
||||
@ -196,6 +195,8 @@ n [A-Za-z0-9_-]
|
||||
|
||||
<HELP>{
|
||||
[ \t]+ {
|
||||
int ts, i;
|
||||
|
||||
ts = 0;
|
||||
for (i = 0; i < yyleng; i++) {
|
||||
if (yytext[i] == '\t')
|
||||
|
Loading…
Reference in New Issue
Block a user