mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
These mods fix bug 9623, where an '@' in the eswitch contents causes a syntax error. I also updated the regressions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -153,7 +153,7 @@ static pval *update_last(pval *, YYLTYPE *);
|
||||
|
||||
/* there will be two shift/reduce conflicts, they involve the if statement, where a single statement occurs not wrapped in curlies in the "true" section
|
||||
the default action to shift will attach the else to the preceeding if. */
|
||||
%expect 7
|
||||
%expect 8
|
||||
%error-verbose
|
||||
|
||||
/*
|
||||
@@ -595,6 +595,8 @@ eswitches : KW_ESWITCHES LC switchlist RC {
|
||||
|
||||
switchlist : /* empty */ { $$ = NULL; }
|
||||
| word SEMI switchlist { $$ = linku1(nword($1, &@1), $3); }
|
||||
| word AT word SEMI switchlist { char *x; asprintf(&x,"%s@%s", $1,$3); free($1); free($3);
|
||||
$$ = linku1(nword(x, &@1), $5);}
|
||||
| switchlist error {$$=$1;}
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user