kconfig: replace current_pos with separate cur_{filename,lineno}
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:07 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:40 +0000 (18:20 +0900)
commit52907c07c49b7b820924773d596c5eec5eaf7469
tree2f72c09e50d916bbd86fa62c4276d6fae2da817f
parentd3d16228a520ce49884d3bb90b67c12726c63020
kconfig: replace current_pos with separate cur_{filename,lineno}

Replace current_pos with separate variables representing the file name
and the line number, respectively.

No functional change is intended.

By the way, you might wonder why the "<none>" fallback exists in
zconf_curname(). menu_add_symbol() saves the current file and the line
number. It is intended to be called only during the yyparse() time.
However, menu_finalize() calls it, where there is no file being parsed.
This is a long-standing hack that should be fixed later. I left a FIXME
comment.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/lexer.l