mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
consistent rule for goto...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -225,6 +225,7 @@ assignment : word EQ { reset_semicount(parseio->scanner); } word SEMI {
|
|||||||
$$->u2.val = $4; }
|
$$->u2.val = $4; }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
/* XXX this matches missing arguments, is this desired ? */
|
||||||
arglist : /* empty */ { $$ = NULL; }
|
arglist : /* empty */ { $$ = NULL; }
|
||||||
| word { $$ = nword($1, &@1); }
|
| word { $$ = nword($1, &@1); }
|
||||||
| arglist COMMA word { $$ = linku1($1, nword($3, &@3)); }
|
| arglist COMMA word { $$ = linku1($1, nword($3, &@3)); }
|
||||||
@@ -475,7 +476,7 @@ target : goto_word { $$ = nword($1, &@1); }
|
|||||||
jumptarget : goto_word { /* ext, 1 */
|
jumptarget : goto_word { /* ext, 1 */
|
||||||
$$ = nword($1, &@1);
|
$$ = nword($1, &@1);
|
||||||
$$->next = nword(strdup("1"), &@1); } /* jump extension[,priority][@context] */
|
$$->next = nword(strdup("1"), &@1); } /* jump extension[,priority][@context] */
|
||||||
| goto_word COMMA goto_word { /* ext, pri */
|
| goto_word COMMA word { /* ext, pri */
|
||||||
$$ = nword($1, &@1);
|
$$ = nword($1, &@1);
|
||||||
$$->next = nword($3, &@3); }
|
$$->next = nword($3, &@3); }
|
||||||
| goto_word COMMA word AT context_name { /* context, ext, pri */
|
| goto_word COMMA word AT context_name { /* context, ext, pri */
|
||||||
|
Reference in New Issue
Block a user