aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/zconf.l
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2011-05-04 21:14:44 -0400
committerArnaud Lacombe <lacombar@gmail.com>2011-06-09 14:04:42 -0400
commit61f956f576031bea270ea54b10411ebb1e172b1b (patch)
tree745793d79480331af3dc27573aadd8c31fac98cd /scripts/kconfig/zconf.l
parent58ef81c5cf147f35dfa248cffdfc60a415783690 (diff)
kconfig: constify `kconf_id_lookup'
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r--scripts/kconfig/zconf.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index b22f884f9022..98aad534a682 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -96,7 +96,7 @@ n [A-Za-z0-9_]
96 96
97<COMMAND>{ 97<COMMAND>{
98 {n}+ { 98 {n}+ {
99 struct kconf_id *id = kconf_id_lookup(yytext, yyleng); 99 const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
100 BEGIN(PARAM); 100 BEGIN(PARAM);
101 current_pos.file = current_file; 101 current_pos.file = current_file;
102 current_pos.lineno = current_file->lineno; 102 current_pos.lineno = current_file->lineno;
@@ -132,7 +132,7 @@ n [A-Za-z0-9_]
132 \n BEGIN(INITIAL); current_file->lineno++; return T_EOL; 132 \n BEGIN(INITIAL); current_file->lineno++; return T_EOL;
133 --- /* ignore */ 133 --- /* ignore */
134 ({n}|[-/.])+ { 134 ({n}|[-/.])+ {
135 struct kconf_id *id = kconf_id_lookup(yytext, yyleng); 135 const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
136 if (id && id->flags & TF_PARAM) { 136 if (id && id->flags & TF_PARAM) {
137 zconflval.id = id; 137 zconflval.id = id;
138 return id->token; 138 return id->token;