diff options
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r-- | scripts/kconfig/zconf.l | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index b22f884f902..00f9d3a9cf8 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l | |||
@@ -1,5 +1,5 @@ | |||
1 | %option backup nostdinit noyywrap never-interactive full ecs | 1 | %option nostdinit noyywrap never-interactive full ecs |
2 | %option 8bit backup nodefault perf-report perf-report | 2 | %option 8bit nodefault perf-report perf-report |
3 | %option noinput | 3 | %option noinput |
4 | %x COMMAND HELP STRING PARAM | 4 | %x COMMAND HELP STRING PARAM |
5 | %{ | 5 | %{ |
@@ -14,7 +14,6 @@ | |||
14 | #include <string.h> | 14 | #include <string.h> |
15 | #include <unistd.h> | 15 | #include <unistd.h> |
16 | 16 | ||
17 | #define LKC_DIRECT_LINK | ||
18 | #include "lkc.h" | 17 | #include "lkc.h" |
19 | 18 | ||
20 | #define START_STRSIZE 16 | 19 | #define START_STRSIZE 16 |
@@ -96,7 +95,7 @@ n [A-Za-z0-9_] | |||
96 | 95 | ||
97 | <COMMAND>{ | 96 | <COMMAND>{ |
98 | {n}+ { | 97 | {n}+ { |
99 | struct kconf_id *id = kconf_id_lookup(yytext, yyleng); | 98 | const struct kconf_id *id = kconf_id_lookup(yytext, yyleng); |
100 | BEGIN(PARAM); | 99 | BEGIN(PARAM); |
101 | current_pos.file = current_file; | 100 | current_pos.file = current_file; |
102 | current_pos.lineno = current_file->lineno; | 101 | current_pos.lineno = current_file->lineno; |
@@ -132,7 +131,7 @@ n [A-Za-z0-9_] | |||
132 | \n BEGIN(INITIAL); current_file->lineno++; return T_EOL; | 131 | \n BEGIN(INITIAL); current_file->lineno++; return T_EOL; |
133 | --- /* ignore */ | 132 | --- /* ignore */ |
134 | ({n}|[-/.])+ { | 133 | ({n}|[-/.])+ { |
135 | struct kconf_id *id = kconf_id_lookup(yytext, yyleng); | 134 | const struct kconf_id *id = kconf_id_lookup(yytext, yyleng); |
136 | if (id && id->flags & TF_PARAM) { | 135 | if (id && id->flags & TF_PARAM) { |
137 | zconflval.id = id; | 136 | zconflval.id = id; |
138 | return id->token; | 137 | return id->token; |