mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +00:00
More expression fixes (bug #1548 again)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -340,11 +340,20 @@ ast_yylex (YYSTYPE *lvalp, YYLTYPE *yylloc, struct parser_control *karoto)
|
|||||||
yylloc->last_column = t2 - karoto->argv;
|
yylloc->last_column = t2 - karoto->argv;
|
||||||
}
|
}
|
||||||
else if( *t1 == 0 )
|
else if( *t1 == 0 )
|
||||||
|
{
|
||||||
|
if( t1 != karoto->ptrptr )
|
||||||
|
{
|
||||||
|
/* this is the last token */
|
||||||
|
p = karoto->ptrptr;
|
||||||
|
karoto->ptrptr = t1;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
/* we are done. That was quick */
|
/* we are done. That was quick */
|
||||||
p = karoto->ptrptr;
|
p = karoto->ptrptr;
|
||||||
yylloc->last_column = t1 - karoto->argv;
|
yylloc->last_column = t1 - karoto->argv;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if( *p == 0 )
|
if( *p == 0 )
|
||||||
p = 0;
|
p = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user