diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 18:51:33 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 18:51:33 +0000 |
commit | d0683971e0081a0a6c9c15b0af8d7296d2eef0a8 (patch) | |
tree | b99bbcf77f28a2db844d4474a14874629ccb8abb /pbx/ael/ael.y | |
parent | ef483c5c9fa64b12fd3e84921750403b3561de25 (diff) |
macro statements can be empty
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24258 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/ael/ael.y')
-rw-r--r-- | pbx/ael/ael.y | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y index 65100eaa6..3123fe0dd 100644 --- a/pbx/ael/ael.y +++ b/pbx/ael/ael.y @@ -208,9 +208,6 @@ opt_abstract: KW_ABSTRACT { $$ = 1; } macro : KW_MACRO word LP arglist RP LC macro_statements RC { $$ = npval2(PV_MACRO, &@1, &@8); $$->u1.str = $2; $$->u2.arglist = $4; $$->u3.macro_statements = $7; } - | KW_MACRO word LP arglist RP LC RC { - $$ = npval2(PV_MACRO, &@1, &@7); - $$->u1.str = $2; $$->u2.arglist = $4; } ; globals : KW_GLOBALS LC global_statements RC { @@ -582,7 +579,8 @@ case_statement: KW_CASE word COLON statements { $$->u1.str = $2;} ; -macro_statements: macro_statement {$$ = $1;} +macro_statements: /* empty */ { $$ = NULL; } + | macro_statement {$$ = $1;} | macro_statements macro_statement { $$ = linku1($1, $2); } ; |