common syntax for context name

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Luigi Rizzo 20 years ago
parent 9c60f78ea1
commit 7cc4511fa2

File diff suppressed because it is too large Load Diff

@ -492,14 +492,10 @@ jumptarget : goto_word { /* ext, 1 */
$$ = nword($5, &@5); $$ = nword($5, &@5);
$$->next = nword($1, &@1); $$->next = nword($1, &@1);
$$->next->next = nword($3, &@3); } $$->next->next = nword($3, &@3); }
| goto_word AT goto_word { /* context, ext, 1 */ | goto_word AT context_name { /* context, ext, 1 */
$$ = nword($3, &@3); $$ = nword($3, &@3);
$$->next = nword($1, &@1); $$->next = nword($1, &@1);
$$->next->next = nword(strdup("1"), &@3); } $$->next->next = nword(strdup("1"), &@3); }
| goto_word AT KW_DEFAULT { /* default, ext, 1 */
$$ = nword(strdup("default"), &@1);
$$->next = nword($1, &@3);
$$->next->next = nword( strdup("1"), &@3); }
; ;
macro_call : word LP {reset_argcount(parseio->scanner);} eval_arglist RP { macro_call : word LP {reset_argcount(parseio->scanner);} eval_arglist RP {

Loading…
Cancel
Save