aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/zconf.y
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-08-03 19:47:34 +0200
committerFelix Fietkau <nbd@nbd.name>2016-08-03 20:03:35 +0200
commit2d7e602381f3c473d6c8214e8e56bcf80ccf9fa5 (patch)
tree43bc0a7953f008fad5fbc793e8d2dfca2e540081 /scripts/config/zconf.y
parent7bf3695b0230d4cc4b6348f7c87b3c164314db8d (diff)
downloadupstream-2d7e602381f3c473d6c8214e8e56bcf80ccf9fa5.tar.gz
upstream-2d7e602381f3c473d6c8214e8e56bcf80ccf9fa5.tar.bz2
upstream-2d7e602381f3c473d6c8214e8e56bcf80ccf9fa5.zip
scripts/config: sync with latest linux upstream
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/config/zconf.y')
-rw-r--r--scripts/config/zconf.y9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/config/zconf.y b/scripts/config/zconf.y
index 903803d7b0..81645a75b0 100644
--- a/scripts/config/zconf.y
+++ b/scripts/config/zconf.y
@@ -70,6 +70,10 @@ static struct menu *current_menu, *current_entry;
%token <string> T_WORD
%token <string> T_WORD_QUOTE
%token T_UNEQUAL
+%token T_LESS
+%token T_LESS_EQUAL
+%token T_GREATER
+%token T_GREATER_EQUAL
%token T_CLOSE_PAREN
%token T_OPEN_PAREN
%token T_EOL
@@ -77,6 +81,7 @@ static struct menu *current_menu, *current_entry;
%left T_OR
%left T_AND
%left T_EQUAL T_UNEQUAL
+%left T_LESS T_LESS_EQUAL T_GREATER T_GREATER_EQUAL
%nonassoc T_NOT
%type <string> prompt
@@ -477,6 +482,10 @@ if_expr: /* empty */ { $$ = NULL; }
;
expr: symbol { $$ = expr_alloc_symbol($1); }
+ | symbol T_LESS symbol { $$ = expr_alloc_comp(E_LTH, $1, $3); }
+ | symbol T_LESS_EQUAL symbol { $$ = expr_alloc_comp(E_LEQ, $1, $3); }
+ | symbol T_GREATER symbol { $$ = expr_alloc_comp(E_GTH, $1, $3); }
+ | symbol T_GREATER_EQUAL symbol { $$ = expr_alloc_comp(E_GEQ, $1, $3); }
| symbol T_EQUAL symbol { $$ = expr_alloc_comp(E_EQUAL, $1, $3); }
| symbol T_UNEQUAL symbol { $$ = expr_alloc_comp(E_UNEQUAL, $1, $3); }
| T_OPEN_PAREN expr T_CLOSE_PAREN { $$ = $2; }