[Plib-cvs] plib/examples/src/psl/data test.psl,1.4,1.5
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-09-06 15:07:47
|
Update of /cvsroot/plib/plib/examples/src/psl/data In directory usw-pr-cvs1:/tmp/cvs-serv22280/plib/examples/src/psl/data Modified Files: test.psl Log Message: Global variable initialisations now work. pslInit created and checked for. Index: test.psl =================================================================== RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- test.psl 5 Sep 2002 15:40:27 -0000 1.4 +++ test.psl 6 Sep 2002 15:07:44 -0000 1.5 @@ -1,10 +1,14 @@ + +float x = 0.0 ; + void wibble () { - hello () ; + x = x + 1 ; + identify () ; } -float x = 123.456 ; +float y = 987.654 ; void main () { @@ -12,7 +16,7 @@ while ( x < 10 ) { - x = x + 1 ; + print ( x, y ) ; wibble () ; pause ; } |