|
From: <net...@us...> - 2002-12-30 15:02:32
|
Update of /cvsroot/cpptool/rfta/src/rftaparser
In directory sc8-pr-cvs1:/tmp/cvs-serv20269/rfta/src/rftaparser
Modified Files:
VariableDeclMutator.cpp
Log Message:
-- bugfix for the array initializer
Index: VariableDeclMutator.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rftaparser/VariableDeclMutator.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** VariableDeclMutator.cpp 20 Dec 2002 08:30:51 -0000 1.13
--- VariableDeclMutator.cpp 30 Dec 2002 15:02:28 -0000 1.14
***************
*** 342,346 ****
while ( current_ != end_ )
{
! char c = *current_;
if ( c == ';' || c == ',' )
return current_ != (start+1);
--- 342,346 ----
while ( current_ != end_ )
{
! char c = *current_;
if ( c == ';' || c == ',' )
return current_ != (start+1);
***************
*** 355,358 ****
--- 355,363 ----
return false;
}
+ else if ( c == '{' )
+ {
+ if ( !tryFindNextBalanced( current_, end_, '{', '}' ) )
+ return false;
+ }
else
++current_;
|