diff options
Diffstat (limited to 'scripts/kconfig/expr.h')
-rw-r--r-- | scripts/kconfig/expr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index 1ee8b1642d3b..b6f922c77e0b 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h | |||
@@ -31,7 +31,7 @@ typedef enum tristate { | |||
31 | } tristate; | 31 | } tristate; |
32 | 32 | ||
33 | enum expr_type { | 33 | enum expr_type { |
34 | E_NONE, E_OR, E_AND, E_NOT, E_EQUAL, E_UNEQUAL, E_CHOICE, E_SYMBOL, E_RANGE | 34 | E_NONE, E_OR, E_AND, E_NOT, E_EQUAL, E_UNEQUAL, E_LIST, E_SYMBOL, E_RANGE |
35 | }; | 35 | }; |
36 | 36 | ||
37 | union expr_data { | 37 | union expr_data { |
@@ -48,6 +48,9 @@ struct expr { | |||
48 | #define EXPR_AND(dep1, dep2) (((dep1)<(dep2))?(dep1):(dep2)) | 48 | #define EXPR_AND(dep1, dep2) (((dep1)<(dep2))?(dep1):(dep2)) |
49 | #define EXPR_NOT(dep) (2-(dep)) | 49 | #define EXPR_NOT(dep) (2-(dep)) |
50 | 50 | ||
51 | #define expr_list_for_each_sym(l, e, s) \ | ||
52 | for (e = (l); e && (s = e->right.sym); e = e->left.expr) | ||
53 | |||
51 | struct expr_value { | 54 | struct expr_value { |
52 | struct expr *expr; | 55 | struct expr *expr; |
53 | tristate tri; | 56 | tristate tri; |