Update of /cvsroot/plib/plib/examples/src/psl/data
In directory usw-pr-cvs1:/tmp/cvs-serv18820/plib/examples/src/psl/data
Modified Files:
test.psl
Log Message:
Added +=, -=, *=, /=, &=, |=, %=, <<= and >>=
Index: test.psl
===================================================================
RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- test.psl 14 Sep 2002 01:30:05 -0000 1.20
+++ test.psl 14 Sep 2002 04:45:54 -0000 1.21
@@ -1,15 +1,13 @@
-void xxx ( int a, float b, string c )
-{
- printf ( "Hello", a, b, c, "\n" ) ;
- printf ( " ", 2 << 2 | 1 ) ;
- printf ( " ", 2 << 2 + 1 ) ;
-}
-
void main ()
{
- xxx ( 1234, 567.89, "Weee!!!" ) ;
- xxx ( 9876, 543.21, "AGAIN!!!" ) ;
+ int x = 1 ;
+
+ x += 11 ; printf ( "12 ", x ) ;
+ x *= 2 ; printf ( "24 ", x ) ;
+ x /= 6 ; printf ( "4 ", x ) ;
+ x <<= 1 ; printf ( "8 ", x ) ;
+ x >>= 1 ; printf ( "4 ", x ) ;
}
|