aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/zconf.y
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-23 14:03:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-23 14:03:35 +0000
commitc48b6508fedea2527548f42095df1e47233243b8 (patch)
tree0cea0004f25e22f35f77db35606c6ba9e9c8e433 /scripts/config/zconf.y
parenteaf0c708f2c23265ce9f95d38d3bb1d942d68e3f (diff)
downloadupstream-c48b6508fedea2527548f42095df1e47233243b8.tar.gz
upstream-c48b6508fedea2527548f42095df1e47233243b8.tar.bz2
upstream-c48b6508fedea2527548f42095df1e47233243b8.zip
add 'deselect' property for menuconfig
SVN-Revision: 6647
Diffstat (limited to 'scripts/config/zconf.y')
-rw-r--r--scripts/config/zconf.y9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/config/zconf.y b/scripts/config/zconf.y
index 4b8ba45061..9689a3ed80 100644
--- a/scripts/config/zconf.y
+++ b/scripts/config/zconf.y
@@ -69,6 +69,7 @@ static struct menu *current_menu, *current_entry;
%token <id>T_PROMPT
%token <id>T_TYPE
%token <id>T_DEFAULT
+%token <id>T_DESELECT
%token <id>T_SELECT
%token <id>T_RANGE
%token <id>T_ON
@@ -119,7 +120,7 @@ stmt_list:
;
option_name:
- T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_RESET
+ T_DEPENDS | T_PROMPT | T_TYPE | T_DESELECT | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_RESET
;
common_stmt:
@@ -204,6 +205,12 @@ config_option: T_DEFAULT expr if_expr T_EOL
$1->stype);
};
+config_option: T_DESELECT T_WORD if_expr T_EOL
+{
+ menu_add_symbol(P_DESELECT, sym_lookup($2, 0), $3);
+ printd(DEBUG_PARSE, "%s:%d:deselect\n", zconf_curname(), zconf_lineno());
+};
+
config_option: T_SELECT T_WORD if_expr T_EOL
{
menu_add_symbol(P_SELECT, sym_lookup($2, 0), $3);