[Plib-cvs] plib/examples/src/psl/data test.psl,1.11,1.12
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-09-08 22:17:36
|
Update of /cvsroot/plib/plib/examples/src/psl/data In directory usw-pr-cvs1:/tmp/cvs-serv21290/plib/examples/src/psl/data Modified Files: test.psl Log Message: Added 'break' and 'continue' - fixed a runtime stack overflow in 'switch'. Index: test.psl =================================================================== RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- test.psl 8 Sep 2002 18:56:29 -0000 1.11 +++ test.psl 8 Sep 2002 22:17:32 -0000 1.12 @@ -5,18 +5,24 @@ for ( i = 0 ; i < 20 ; i = i + 1 - 3 + 3 ) { +if ( i == 10 ) continue ; +if ( i == 17 ) break ; + switch ( i ) { case 0 : case 1 : case 2 : printf ( "Small! " ) ; + break ; case 3 : case 4 : case 5 : printf ( "Medium! " ) ; + break ; default: printf ( "Huge! ", i ) ; + break ; } printf ( "\n" ) ; |