Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/embryo
Dir : e17/libs/embryo/examples
Modified Files:
test.sma
Log Message:
getfarg
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/examples/test.sma,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- test.sma 29 Oct 2004 20:11:22 -0000 1.7
+++ test.sma 9 Dec 2004 02:46:31 -0000 1.8
@@ -98,7 +98,7 @@
printf("Done. Return value of testfn() was %i\n", ret);
printf("Test varargs...\n");
- vargs(1, 2, "hello", "there", 8, 9);
+ vargs(1, 2, "hello", "there", 8, 77, 5.0, 7.77);
printf("\n\n");
@@ -113,6 +113,7 @@
for (new i = 2; i < numargs(); i++)
{
new val;
+ new Float:fval;
new str[100];
printf(" GET ARG... %i\n", i);
@@ -125,11 +126,16 @@
}
printf(" ARG: %s [max %i]\n", str, sizeof(str));
}
- else
+ else if (i < 6)
{
val = getarg(i);
printf(" ARG: %i\n", val);
}
+ else if (i < 8)
+ {
+ fval = getfarg(i);
+ printf(" FARG: %f\n", fval);
+ }
}
printf("ARGS DONE.\n");
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs