mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
macro statements can be empty
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1145
pbx/ael/ael.tab.c
1145
pbx/ael/ael.tab.c
File diff suppressed because it is too large
Load Diff
@@ -208,9 +208,6 @@ opt_abstract: KW_ABSTRACT { $$ = 1; }
|
|||||||
macro : KW_MACRO word LP arglist RP LC macro_statements RC {
|
macro : KW_MACRO word LP arglist RP LC macro_statements RC {
|
||||||
$$ = npval2(PV_MACRO, &@1, &@8);
|
$$ = npval2(PV_MACRO, &@1, &@8);
|
||||||
$$->u1.str = $2; $$->u2.arglist = $4; $$->u3.macro_statements = $7; }
|
$$->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 {
|
globals : KW_GLOBALS LC global_statements RC {
|
||||||
@@ -582,7 +579,8 @@ case_statement: KW_CASE word COLON statements {
|
|||||||
$$->u1.str = $2;}
|
$$->u1.str = $2;}
|
||||||
;
|
;
|
||||||
|
|
||||||
macro_statements: macro_statement {$$ = $1;}
|
macro_statements: /* empty */ { $$ = NULL; }
|
||||||
|
| macro_statement {$$ = $1;}
|
||||||
| macro_statements macro_statement { $$ = linku1($1, $2); }
|
| macro_statements macro_statement { $$ = linku1($1, $2); }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user