diff test/goto.c @ 725:3f1f6c0610c1

goto with enviornment syntax changed.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 20 Aug 2009 16:39:02 +0900
parents 6b7372e17970
children c2c709727221
line wrap: on
line diff
--- a/test/goto.c	Sat Nov 08 15:11:06 2008 +0900
+++ b/test/goto.c	Thu Aug 20 16:39:02 2009 +0900
@@ -1,3 +1,6 @@
+#define __environment _CbC_environment
+#define __return _CbC_return
+
 extern int printf(const char *,...);
 
 __code (*conv)(int,__code (*)());
@@ -12,7 +15,7 @@
 
 char* print_conv(__code conv());
 
-__code (*exit0)(int);
+__code (*exit0)(int,void*);
 void *env;
 
 __code
@@ -68,7 +71,7 @@
 a9(int i,int j,int k,__code (*conv)())
 {
     printf("#0069:a9 %d %s\n",i,print_conv(conv));
-    goto (*conv)(0),env;
+    goto (*conv)(0,env);
 }
 
 main(int ac,char *av[]) {