Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/embryo

Dir     : e17/libs/embryo/examples


Modified Files:
        test.sma 


Log Message:


1. test.sma will become a comprehensive test now... starting anyway
2. fixed OP_SWITCH handling - man it was so broken!

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/examples/test.sma,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- test.sma    25 Mar 2004 09:44:54 -0000      1.3
+++ test.sma    15 May 2004 05:04:07 -0000      1.4
@@ -14,9 +14,43 @@
 

 main()

 {

-   testfn(12345, "Panties!!!!", 7);

+   printf("Testing switch and case statements...\n");

    

-   return 77;

+   new var = 4;

+   

+   switch (var) {

+    case 0:

+      printf("It's 0\n");

+    case 1:

+      printf("It's 1\n");

+    case 2:

+      printf("It's 2\n");

+    case 3:

+      printf("It's 3\n");

+    case 4:

+      printf("It's 4\n");

+    case 5:

+      printf("It's 5\n");

+    case 6:

+      printf("It's 6\n");

+    case 7:

+      printf("It's 7\n");

+    default:

+      printf("It's something else\n");

+   }

+   

+   

+   printf("\n\n");

+   printf("The printf() call is a native exported function. This should work\n");

+   printf("Calling testfn()...\n");

+   

+   new ret;

+   ret = testfn(12345, "A Test String", 7);

+   printf("Done. Return value of testfn() was %i\n", ret);

+   

+   printf("\n\n");

+   

+   return 7;

 }

 

 tester(arg1=0, str[]="", arg2=0)





-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to