Commit 2b2112f6 authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Michal Marek

kconfig: get rid of unused flags

Now that we detect recusrion of sourced files, get rid of
now unused flags.

Regenerate lex.zconf.c_shipped file.
Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent f094f8a1
...@@ -20,12 +20,8 @@ struct file { ...@@ -20,12 +20,8 @@ struct file {
struct file *parent; struct file *parent;
const char *name; const char *name;
int lineno; int lineno;
int flags;
}; };
#define FILE_BUSY 0x0001
#define FILE_SCANNED 0x0002
typedef enum tristate { typedef enum tristate {
no, mod, yes no, mod, yes
} tristate; } tristate;
......
...@@ -2363,7 +2363,6 @@ void zconf_initscan(const char *name) ...@@ -2363,7 +2363,6 @@ void zconf_initscan(const char *name)
current_file = file_lookup(name); current_file = file_lookup(name);
current_file->lineno = 1; current_file->lineno = 1;
current_file->flags = FILE_BUSY;
} }
void zconf_nextfile(const char *name) void zconf_nextfile(const char *name)
...@@ -2403,7 +2402,6 @@ void zconf_nextfile(const char *name) ...@@ -2403,7 +2402,6 @@ void zconf_nextfile(const char *name)
exit(1); exit(1);
} }
} }
file->flags |= FILE_BUSY;
file->lineno = 1; file->lineno = 1;
file->parent = current_file; file->parent = current_file;
current_file = file; current_file = file;
...@@ -2413,8 +2411,6 @@ static void zconf_endfile(void) ...@@ -2413,8 +2411,6 @@ static void zconf_endfile(void)
{ {
struct buffer *parent; struct buffer *parent;
current_file->flags |= FILE_SCANNED;
current_file->flags &= ~FILE_BUSY;
current_file = current_file->parent; current_file = current_file->parent;
parent = current_buf->parent; parent = current_buf->parent;
......
...@@ -294,7 +294,6 @@ void zconf_initscan(const char *name) ...@@ -294,7 +294,6 @@ void zconf_initscan(const char *name)
current_file = file_lookup(name); current_file = file_lookup(name);
current_file->lineno = 1; current_file->lineno = 1;
current_file->flags = FILE_BUSY;
} }
void zconf_nextfile(const char *name) void zconf_nextfile(const char *name)
...@@ -334,7 +333,6 @@ void zconf_nextfile(const char *name) ...@@ -334,7 +333,6 @@ void zconf_nextfile(const char *name)
exit(1); exit(1);
} }
} }
file->flags |= FILE_BUSY;
file->lineno = 1; file->lineno = 1;
file->parent = current_file; file->parent = current_file;
current_file = file; current_file = file;
...@@ -344,8 +342,6 @@ static void zconf_endfile(void) ...@@ -344,8 +342,6 @@ static void zconf_endfile(void)
{ {
struct buffer *parent; struct buffer *parent;
current_file->flags |= FILE_SCANNED;
current_file->flags &= ~FILE_BUSY;
current_file = current_file->parent; current_file = current_file->parent;
parent = current_buf->parent; parent = current_buf->parent;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment