diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-30 23:53:22 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-30 23:53:22 +0000 |
commit | e3c71666ddc003e7e0a03531e4516bd859b3f8c6 (patch) | |
tree | 850effc5ebda21a68dab614ec2f6b5928e1cb6d8 /pbx/ael/ael.y | |
parent | 105894039819384721c422229c476b51f5dff8d1 (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: http://svn.digium.com/svn/asterisk/trunk@23783 f38db490-d61c-443f-a65b-d21fe96a405b
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 */ |