Skip to content

Commit 5b2cf36

Browse files
committed
kconfig: add comments to symbol flags
No functional changes - only comments. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent eaa2a87 commit 5b2cf36

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

‎scripts/kconfig/expr.h‎

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,24 @@ struct symbol {
8888

8989
#define for_all_symbols(i, sym) for (i = 0; i < 257; i++) for (sym = symbol_hash[i]; sym; sym = sym->next) if (sym->type != S_OTHER)
9090

91-
#define SYMBOL_CONST 0x0001
92-
#define SYMBOL_CHECK 0x0008
93-
#define SYMBOL_CHOICE 0x0010
94-
#define SYMBOL_CHOICEVAL 0x0020
95-
#define SYMBOL_VALID 0x0080
96-
#define SYMBOL_OPTIONAL 0x0100
97-
#define SYMBOL_WRITE 0x0200
98-
#define SYMBOL_CHANGED 0x0400
99-
#define SYMBOL_AUTO 0x1000
100-
#define SYMBOL_CHECKED 0x2000
101-
#define SYMBOL_WARNED 0x8000
102-
#define SYMBOL_DEF 0x10000
103-
#define SYMBOL_DEF_USER 0x10000
104-
#define SYMBOL_DEF_AUTO 0x20000
105-
#define SYMBOL_DEF3 0x40000
106-
#define SYMBOL_DEF4 0x80000
91+
#define SYMBOL_CONST 0x0001 /* symbol is const */
92+
#define SYMBOL_CHECK 0x0008 /* used during dependency checking */
93+
#define SYMBOL_CHOICE 0x0010 /* start of a choice block (null name) */
94+
#define SYMBOL_CHOICEVAL 0x0020 /* used as a value in a choice block */
95+
#define SYMBOL_VALID 0x0080 /* set when symbol.curr is calculated */
96+
#define SYMBOL_OPTIONAL 0x0100 /* choice is optional - values can be 'n' */
97+
#define SYMBOL_WRITE 0x0200 /* ? */
98+
#define SYMBOL_CHANGED 0x0400 /* ? */
99+
#define SYMBOL_AUTO 0x1000 /* value from environment variable */
100+
#define SYMBOL_CHECKED 0x2000 /* used during dependency checking */
101+
#define SYMBOL_WARNED 0x8000 /* warning has been issued */
102+
103+
/* Set when symbol.def[] is used */
104+
#define SYMBOL_DEF 0x10000 /* First bit of SYMBOL_DEF */
105+
#define SYMBOL_DEF_USER 0x10000 /* symbol.def[S_DEF_USER] is valid */
106+
#define SYMBOL_DEF_AUTO 0x20000 /* symbol.def[S_DEF_AUTO] is valid */
107+
#define SYMBOL_DEF3 0x40000 /* symbol.def[S_DEF_3] is valid */
108+
#define SYMBOL_DEF4 0x80000 /* symbol.def[S_DEF_4] is valid */
107109

108110
#define SYMBOL_MAXLENGTH 256
109111
#define SYMBOL_HASHSIZE 257

0 commit comments

Comments
 (0)