diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-03 00:58:14 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 18:20:40 +0900 |
commit | 8facc5f31954d5fddc2759de474eb6fae1135ced (patch) | |
tree | d8f124bf59922e621d29fdcabdd5c4c40abfebb2 /scripts/kconfig/expr.h | |
parent | 4ff7ceae83bea6afcd0325b88e3f3d9f168cc432 (diff) | |
download | linux-8facc5f31954d5fddc2759de474eb6fae1135ced.tar.gz linux-8facc5f31954d5fddc2759de474eb6fae1135ced.tar.bz2 linux-8facc5f31954d5fddc2759de474eb6fae1135ced.zip |
kconfig: move the file and lineno in struct file to struct buffer
struct file has two link nodes, 'next' and 'parent'.
The former is used to link files in the 'file_list' linked list,
which manages the list of Kconfig files seen so far.
The latter is used to link files in the 'current_file' linked list,
which manages the inclusion ("source") tree.
The latter should be tracked together with the lexer state.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/expr.h')
-rw-r--r-- | scripts/kconfig/expr.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index 037db39c5bf0..85e0d1ab3c8a 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h @@ -19,9 +19,7 @@ extern "C" { struct file { struct file *next; - struct file *parent; const char *name; - int lineno; }; typedef enum tristate { @@ -278,7 +276,6 @@ struct jump_key { }; extern struct file *file_list; -extern struct file *current_file; extern struct symbol symbol_yes, symbol_no, symbol_mod; extern struct symbol *modules_sym; |