diff options
author | Arnaud Lacombe <lacombar@gmail.com> | 2010-09-11 03:23:28 +0200 |
---|---|---|
committer | Arnaud Lacombe <lacombar@gmail.com> | 2010-09-20 00:19:44 +0200 |
commit | c0920a1cbd7aecefa5f9768e82136935132ef1cf (patch) | |
tree | 0e680136b5c05bf7f7f8073e183a7d6d99f615fe /scripts/kconfig/lex.zconf.c_shipped | |
parent | kconfig: implement the `mainmenu' directive (diff) | |
download | linux-c0920a1cbd7aecefa5f9768e82136935132ef1cf.tar.xz linux-c0920a1cbd7aecefa5f9768e82136935132ef1cf.zip |
kconfig: regen parser
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/lex.zconf.c_shipped')
-rw-r--r-- | scripts/kconfig/lex.zconf.c_shipped | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped index fdc7113b08d1..6eb039718259 100644 --- a/scripts/kconfig/lex.zconf.c_shipped +++ b/scripts/kconfig/lex.zconf.c_shipped @@ -2373,9 +2373,10 @@ void zconf_nextfile(const char *name) memset(buf, 0, sizeof(*buf)); current_buf->state = YY_CURRENT_BUFFER; - zconfin = zconf_fopen(name); + zconfin = zconf_fopen(file->name); if (!zconfin) { - printf("%s:%d: can't open file \"%s\"\n", zconf_curname(), zconf_lineno(), name); + printf("%s:%d: can't open file \"%s\"\n", + zconf_curname(), zconf_lineno(), file->name); exit(1); } zconf_switch_to_buffer(zconf_create_buffer(zconfin,YY_BUF_SIZE)); @@ -2422,7 +2423,7 @@ int zconf_lineno(void) return current_pos.lineno; } -char *zconf_curname(void) +const char *zconf_curname(void) { return current_pos.file ? current_pos.file->name : "<none>"; } |