diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-04-30 23:53:22 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-04-30 23:53:22 +0000 |
commit | 595955ea982f87c346f0f061c9926dd3954b05a9 (patch) | |
tree | 850effc5ebda21a68dab614ec2f6b5928e1cb6d8 /pbx/ael/ael.y | |
parent | 8faa2e7d4400abe592c263236d9212bc8b65060a (diff) |
switch a couple of operands.
This gives slightly different results from the previous code
on syntax errors, but it actually makes fewer mistakes so
i think it is an improvement. Additionally, it makes the
code more uniform (the other call of reset_argcount
occurs after LP and not before).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael.y')
-rw-r--r-- | pbx/ael/ael.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y index c7b6e7469..51561a651 100644 --- a/pbx/ael/ael.y +++ b/pbx/ael/ael.y @@ -564,7 +564,10 @@ macro_call : word LP {reset_argcount(parseio->scanner);} eval_arglist RP { $$->u1.str = $1; } ; -application_call_head: word {reset_argcount(parseio->scanner);} LP { +/* XXX application_call_head must be revised. Having 'word LP { ...' + * just as above should work fine, however it gives a different result. + */ +application_call_head: word LP {reset_argcount(parseio->scanner);} { if (strcasecmp($1,"goto") == 0) { $$= npval2(PV_GOTO, &@1, &@3); free($1); /* won't be using this */ |