common syntax for context name

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-05-03 16:00:49 +00:00
parent 9c60f78ea1
commit 7cc4511fa2
2 changed files with 292 additions and 308 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -492,14 +492,10 @@ jumptarget : goto_word { /* ext, 1 */
$$ = nword($5, &@5);
$$->next = nword($1, &@1);
$$->next->next = nword($3, &@3); }
| goto_word AT goto_word { /* context, ext, 1 */
| goto_word AT context_name { /* context, ext, 1 */
$$ = nword($3, &@3);
$$->next = nword($1, &@1);
$$->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 {