diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-23 14:03:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-23 14:03:35 +0000 |
commit | 1759c808172f0b9a972362aeb1112925346151d2 (patch) | |
tree | 30ecccd6a6dfde5b1146b762ca9795e6e5356ea7 /scripts/config/symbol.c | |
parent | 3f117aead53e2703f6f8d1310383fff9bea5519b (diff) | |
download | master-187ad058-1759c808172f0b9a972362aeb1112925346151d2.tar.gz master-187ad058-1759c808172f0b9a972362aeb1112925346151d2.tar.bz2 master-187ad058-1759c808172f0b9a972362aeb1112925346151d2.zip |
add 'deselect' property for menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6647 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/config/symbol.c')
-rw-r--r-- | scripts/config/symbol.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/config/symbol.c b/scripts/config/symbol.c index b79d81ac13..23246ca3d4 100644 --- a/scripts/config/symbol.c +++ b/scripts/config/symbol.c @@ -204,13 +204,12 @@ static void sym_calc_visibility(struct symbol *sym) prop->visible.tri = expr_calc_value(prop->visible.expr); tri = E_OR(tri, prop->visible.tri); } -/* tristate always enabled */ -#if 0 - if (tri == mod && (sym->type != S_TRISTATE || modules_val == no)) -#else if (tri == mod && (sym->type != S_TRISTATE)) -#endif tri = yes; + if (sym->rev_dep_inv.expr) { + if (expr_calc_value(sym->rev_dep_inv.expr) == yes) + tri = no; + } if (sym->visible != tri) { sym->visible = tri; sym_set_changed(sym); @@ -814,7 +813,7 @@ struct symbol *sym_check_deps(struct symbol *sym) goto out; for (prop = sym->prop; prop; prop = prop->next) { - if (prop->type == P_CHOICE || prop->type == P_SELECT) + if (prop->type == P_CHOICE || prop->type == P_SELECT || prop->type == P_DESELECT) continue; sym2 = sym_check_expr_deps(prop->visible.expr); if (sym2) @@ -882,6 +881,8 @@ const char *prop_get_type_name(enum prop_type type) return "choice"; case P_SELECT: return "select"; + case P_DESELECT: + return "deselect"; case P_RANGE: return "range"; case P_UNKNOWN: |