[Prev][Next][Index]

Problems unparsing a 'continue' stmt in C



Hello,

	I am having problems with the SgFile::unparse() function. It 
doesn't seem to handle continue statements. For example, the following 
function

-----------------------------------------------------------------------
test()
{
	int i, j;

	for( i = 0; i < 10; i++ )
	{
		if( j == 5 )
			continue;
		j++;
	}
}
-----------------------------------------------------------------------

when unparsed, produces this output


-----------------------------------------------------------------------
  test(){
       int i, j;
       for (i = 0 ; i < 10 ; (i)++)
       {
          if (j == 5) 
          {
 *** UNPARSING ERROR OCCURRED HERE ***
           }
           (j)++;
        }
}
-----------------------------------------------------------------------


Thank you. Diego.

--
Diego A. Novillo                  | "We each pay a fabulous price for our
diego@cs.ualberta.ca              |  visions of paradise. But a spirit with
Computing Science - U of Alberta  |  a vision is a dream with a mission"
Edmonton, Alberta - Canada        |             Rush - Mission