Update of /cvsroot/plib/plib/examples/src/psl/data
In directory usw-pr-cvs1:/tmp/cvs-serv21376/plib/examples/src/psl/data
Modified Files:
test.psl
Log Message:
Added 'for' loops and 'do/while'.
Index: test.psl
===================================================================
RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test.psl 7 Sep 2002 23:05:06 -0000 1.9
+++ test.psl 8 Sep 2002 04:51:38 -0000 1.10
@@ -1,39 +1,11 @@
-
-int x = 0.0 ;
-
-int wibble ()
-{
- x = x + 1 ;
- identify () ;
- return 123 ;
-}
-
-float y = 987.654 ;
-
-/*
- C style Comments...
-*/
-
-// ...and C++ style both work...
-
void main ()
{
- x = 0 ;
-
- printf ( "X,Y=", x, y ) ;
+ int i ;
+ for ( i = 0 ; i < 20 ; i = i + 1 - 3 + 3 )
{
- int x = wibble() ;
-
- printf ( "X=", x ) ;
-
- {
- int x = 456.0 ;
- printf ( "Local X=", x ) ;
- }
-
- printf ( "X=", x ) ;
+ printf ( "I=", i ) ;
}
}
|