diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/confdata.c | 2 | ||||
-rw-r--r-- | scripts/kconfig/expr.c | 6 | ||||
-rw-r--r-- | scripts/kconfig/expr.h | 6 | ||||
-rw-r--r-- | scripts/kconfig/symbol.c | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 2eccefb03a93..497a19e85a07 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -300,7 +300,7 @@ load: | |||
300 | cs->def[def].val = sym; | 300 | cs->def[def].val = sym; |
301 | break; | 301 | break; |
302 | } | 302 | } |
303 | cs->def[def].tri = E_OR(cs->def[def].tri, sym->def[def].tri); | 303 | cs->def[def].tri = EXPR_OR(cs->def[def].tri, sym->def[def].tri); |
304 | } | 304 | } |
305 | } | 305 | } |
306 | fclose(in); | 306 | fclose(in); |
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index 6f98dbfe70cf..c8793d1d908f 100644 --- a/scripts/kconfig/expr.c +++ b/scripts/kconfig/expr.c | |||
@@ -955,14 +955,14 @@ tristate expr_calc_value(struct expr *e) | |||
955 | case E_AND: | 955 | case E_AND: |
956 | val1 = expr_calc_value(e->left.expr); | 956 | val1 = expr_calc_value(e->left.expr); |
957 | val2 = expr_calc_value(e->right.expr); | 957 | val2 = expr_calc_value(e->right.expr); |
958 | return E_AND(val1, val2); | 958 | return EXPR_AND(val1, val2); |
959 | case E_OR: | 959 | case E_OR: |
960 | val1 = expr_calc_value(e->left.expr); | 960 | val1 = expr_calc_value(e->left.expr); |
961 | val2 = expr_calc_value(e->right.expr); | 961 | val2 = expr_calc_value(e->right.expr); |
962 | return E_OR(val1, val2); | 962 | return EXPR_OR(val1, val2); |
963 | case E_NOT: | 963 | case E_NOT: |
964 | val1 = expr_calc_value(e->left.expr); | 964 | val1 = expr_calc_value(e->left.expr); |
965 | return E_NOT(val1); | 965 | return EXPR_NOT(val1); |
966 | case E_EQUAL: | 966 | case E_EQUAL: |
967 | sym_calc_value(e->left.sym); | 967 | sym_calc_value(e->left.sym); |
968 | sym_calc_value(e->right.sym); | 968 | sym_calc_value(e->right.sym); |
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index a195986eec6f..b7889971e42d 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h | |||
@@ -45,9 +45,9 @@ struct expr { | |||
45 | union expr_data left, right; | 45 | union expr_data left, right; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | #define E_OR(dep1, dep2) (((dep1)>(dep2))?(dep1):(dep2)) | 48 | #define EXPR_OR(dep1, dep2) (((dep1)>(dep2))?(dep1):(dep2)) |
49 | #define E_AND(dep1, dep2) (((dep1)<(dep2))?(dep1):(dep2)) | 49 | #define EXPR_AND(dep1, dep2) (((dep1)<(dep2))?(dep1):(dep2)) |
50 | #define E_NOT(dep) (2-(dep)) | 50 | #define EXPR_NOT(dep) (2-(dep)) |
51 | 51 | ||
52 | struct expr_value { | 52 | struct expr_value { |
53 | struct expr *expr; | 53 | struct expr *expr; |
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index c35dcc5d6189..add068c8e513 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c | |||
@@ -199,7 +199,7 @@ static void sym_calc_visibility(struct symbol *sym) | |||
199 | tri = no; | 199 | tri = no; |
200 | for_all_prompts(sym, prop) { | 200 | for_all_prompts(sym, prop) { |
201 | prop->visible.tri = expr_calc_value(prop->visible.expr); | 201 | prop->visible.tri = expr_calc_value(prop->visible.expr); |
202 | tri = E_OR(tri, prop->visible.tri); | 202 | tri = EXPR_OR(tri, prop->visible.tri); |
203 | } | 203 | } |
204 | if (tri == mod && (sym->type != S_TRISTATE || modules_val == no)) | 204 | if (tri == mod && (sym->type != S_TRISTATE || modules_val == no)) |
205 | tri = yes; | 205 | tri = yes; |
@@ -303,7 +303,7 @@ void sym_calc_value(struct symbol *sym) | |||
303 | if (sym_is_choice_value(sym) && sym->visible == yes) { | 303 | if (sym_is_choice_value(sym) && sym->visible == yes) { |
304 | prop = sym_get_choice_prop(sym); | 304 | prop = sym_get_choice_prop(sym); |
305 | newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; | 305 | newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; |
306 | } else if (E_OR(sym->visible, sym->rev_dep.tri) != no) { | 306 | } else if (EXPR_OR(sym->visible, sym->rev_dep.tri) != no) { |
307 | sym->flags |= SYMBOL_WRITE; | 307 | sym->flags |= SYMBOL_WRITE; |
308 | if (sym_has_value(sym)) | 308 | if (sym_has_value(sym)) |
309 | newval.tri = sym->def[S_DEF_USER].tri; | 309 | newval.tri = sym->def[S_DEF_USER].tri; |
@@ -312,7 +312,7 @@ void sym_calc_value(struct symbol *sym) | |||
312 | if (prop) | 312 | if (prop) |
313 | newval.tri = expr_calc_value(prop->expr); | 313 | newval.tri = expr_calc_value(prop->expr); |
314 | } | 314 | } |
315 | newval.tri = E_OR(E_AND(newval.tri, sym->visible), sym->rev_dep.tri); | 315 | newval.tri = EXPR_OR(EXPR_AND(newval.tri, sym->visible), sym->rev_dep.tri); |
316 | } else if (!sym_is_choice(sym)) { | 316 | } else if (!sym_is_choice(sym)) { |
317 | prop = sym_get_default_prop(sym); | 317 | prop = sym_get_default_prop(sym); |
318 | if (prop) { | 318 | if (prop) { |