Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
cf82607a
Commit
cf82607a
authored
Dec 26, 2008
by
Sam Ravnborg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kconfig: struct property commented
No functional changes Signed-off-by:
Sam Ravnborg
<
sam@ravnborg.org
>
parent
5b2cf365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
10 deletions
+30
-10
scripts/kconfig/expr.h
scripts/kconfig/expr.h
+30
-10
No files found.
scripts/kconfig/expr.h
View file @
cf82607a
...
...
@@ -111,21 +111,41 @@ struct symbol {
#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
{
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
*
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
*
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) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment