diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-05-02 20:18:02 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-05-02 20:18:02 +0000 |
commit | 0cf25becb9c82e7afb2e647a45aabb420318b66c (patch) | |
tree | d9cda26554e836d8772c021603bb40d40381b05c /pbx/ael/ael.y | |
parent | 05d2b781327a3c5a58f2064bb14801ea15f0de30 (diff) |
simplify case statements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael.y')
-rw-r--r-- | pbx/ael/ael.y | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y index ccbb961d6..6c0a56f3f 100644 --- a/pbx/ael/ael.y +++ b/pbx/ael/ael.y @@ -397,8 +397,6 @@ statement : LC statements RC { $$ = npval2(PV_WHILE, &@1, &@3); $$->u1.str = $2; $$->u2.statements = $3; } - | switch_head RC /* empty list OK */ { - $$ = update_last($1, &@2); } | switch_head case_statements RC { $$ = update_last($1, &@3); $$->u2.statements = $2;} @@ -553,7 +551,8 @@ eval_arglist : word_list { $$ = nword($1, &@1); } | eval_arglist COMMA opt_word { $$ = linku1($1, nword($3, &@3)); } ; -case_statements: case_statement {$$=$1;} +case_statements: /* empty */ { $$ = NULL; } + | case_statement {$$=$1;} | case_statements case_statement { $$ = linku1($1, $2); } ; |