projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b2cf36
)
kconfig: struct property commented
author
Sam Ravnborg
<sam@ravnborg.org>
Fri, 26 Dec 2008 20:32:31 +0000
(21:32 +0100)
committer
Sam Ravnborg
<sam@ravnborg.org>
Fri, 2 Jan 2009 19:43:21 +0000
(20:43 +0100)
No functional changes
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kconfig/expr.h
patch
|
blob
|
blame
|
history
diff --git
a/scripts/kconfig/expr.h
b/scripts/kconfig/expr.h
index 0bdb58eda0cbb2cd5d7e4abe6c75ffb4986fd480..6408fefae083703e2fa3d8e8a3d4f8a814f44f0b 100644
(file)
--- a/
scripts/kconfig/expr.h
+++ b/
scripts/kconfig/expr.h
@@
-111,21
+111,41
@@
struct symbol {
#define SYMBOL_HASHSIZE 257
#define SYMBOL_HASHMASK 0xff
#define SYMBOL_HASHSIZE 257
#define SYMBOL_HASHMASK 0xff
+/* A property represent the config options that can be associated
+ * with a config "symbol".
+ * Sample:
+ * config FOO
+ * default y
+ * prompt "foo prompt"
+ * select BAR
+ * config BAZ
+ * int "BAZ Value"
+ * range 1..255
+ */
enum prop_type {
enum prop_type {
- P_UNKNOWN, P_PROMPT, P_COMMENT, P_MENU, P_DEFAULT, P_CHOICE,
- P_SELECT, P_RANGE, P_ENV
+ P_UNKNOWN,
+ P_PROMPT, /* prompt "foo prompt" or "BAZ Value" */
+ P_COMMENT, /* text associated with a comment */
+ P_MENU, /* prompt associated with a menuconfig option */
+ P_DEFAULT, /* default y */
+ P_CHOICE, /* choice value */
+ P_SELECT, /* select BAR */
+ P_RANGE, /* range 7..100 (for a symbol) */
+ P_ENV, /* value from environment variable */
};
struct property {
};
struct property {
- struct property *next;
- struct symbol *sym;
- enum prop_type type;
- const char *text;
+ struct property *next;
/* next property - null if last */
+ struct symbol *sym;
/* the symbol for which the property is associated */
+ enum prop_type type;
/* type of property */
+ const char *text;
/* the prompt value - P_PROMPT, P_MENU, P_COMMENT */
struct expr_value visible;
struct expr_value visible;
- struct expr *expr;
- struct menu *menu;
- struct file *file;
- int lineno;
+ struct expr *expr; /* the optional conditional part of the property */
+ struct menu *menu; /* the menu the property are associated with
+ * valid for: P_SELECT, P_RANGE, P_CHOICE,
+ * P_PROMPT, P_DEFAULT, P_MENU, P_COMMENT */
+ struct file *file; /* what file was this property defined */
+ int lineno; /* what lineno was this property defined */
};
#define for_all_properties(sym, st, tok) \
};
#define for_all_properties(sym, st, tok) \
This page took
0.024848 seconds
and
5
git commands to generate.