[Plib-cvs] plib/examples/src/psl/data test.psl,1.17,1.18
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-09-13 22:32:19
|
Update of /cvsroot/plib/plib/examples/src/psl/data In directory usw-pr-cvs1:/tmp/cvs-serv1825/plib/examples/src/psl/data Modified Files: test.psl Log Message: Added subroutine parameters. Index: test.psl =================================================================== RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- test.psl 13 Sep 2002 17:37:26 -0000 1.17 +++ test.psl 13 Sep 2002 22:32:15 -0000 1.18 @@ -1,18 +1,13 @@ -float f = 1.0 ; - - -void xxx () +void xxx ( int a, float b, string c ) { - f = f * 1.0001 ; + printf ( "Hello", a, b, c, "\n" ) ; } void main () { - int i ; - - for ( i = 0 ; i < 1000000 ; i = i + 1 ) - xxx () ; + xxx ( 1234, 567.89, "Weee!!!" ) ; + xxx ( 9876, 543.21, "AGAIN!!!" ) ; } |