diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-26 15:07:57 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-01-02 14:43:20 -0500 |
commit | eaa2a87460eca27ce725d63bbcf3b2da053828b7 (patch) | |
tree | b43971daff36707b91aecf6526e0422b5c703836 /scripts/kconfig | |
parent | cfb2a494bb7dca9cf8d1632fbed14b34db051980 (diff) |
kconfig: explain symbol value defaults
Added a few comments - no functional change.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/expr.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index 9d4cba1c001d..455f2c87ebb4 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h | |||
@@ -65,9 +65,13 @@ enum symbol_type { | |||
65 | S_UNKNOWN, S_BOOLEAN, S_TRISTATE, S_INT, S_HEX, S_STRING, S_OTHER | 65 | S_UNKNOWN, S_BOOLEAN, S_TRISTATE, S_INT, S_HEX, S_STRING, S_OTHER |
66 | }; | 66 | }; |
67 | 67 | ||
68 | /* enum values are used as index to symbol.def[] */ | ||
68 | enum { | 69 | enum { |
69 | S_DEF_USER, /* main user value */ | 70 | S_DEF_USER, /* main user value */ |
70 | S_DEF_AUTO, | 71 | S_DEF_AUTO, /* values read from auto.conf */ |
72 | S_DEF_DEF3, /* Reserved for UI usage */ | ||
73 | S_DEF_DEF4, /* Reserved for UI usage */ | ||
74 | S_DEF_COUNT | ||
71 | }; | 75 | }; |
72 | 76 | ||
73 | struct symbol { | 77 | struct symbol { |
@@ -75,7 +79,7 @@ struct symbol { | |||
75 | char *name; | 79 | char *name; |
76 | enum symbol_type type; | 80 | enum symbol_type type; |
77 | struct symbol_value curr; | 81 | struct symbol_value curr; |
78 | struct symbol_value def[4]; | 82 | struct symbol_value def[S_DEF_COUNT]; |
79 | tristate visible; | 83 | tristate visible; |
80 | int flags; | 84 | int flags; |
81 | struct property *prop; | 85 | struct property *prop; |