Mercurial > hg > CbC > old > device
diff test/arg.c @ 172:096559f07a70
some check
author | kono |
---|---|
date | Tue, 25 Nov 2003 11:47:41 +0900 |
parents | 82d0e30f61dd |
children | ce0c38b6c85e |
line wrap: on
line diff
--- a/test/arg.c Mon Nov 24 20:28:19 2003 +0900 +++ b/test/arg.c Tue Nov 25 11:47:41 2003 +0900 @@ -13,7 +13,7 @@ code carg2(int arg0,int arg1,int arg2,int arg3,int arg4,code(*exit1)(),void *env) { struct arg args0; - printf("arg1: %d %d %d %d %d : %x %x\n",arg0,arg1,arg2,arg3,arg4,exit1,env); + printf("arg1: %d %d %d %d %d : %x %x\n",arg0,arg1,arg2,arg3,arg4,sizeof(exit1),sizeof(env)); args0.a0 = arg0; args0.a1 = arg1; args0.a2 = arg2; @@ -26,9 +26,9 @@ { printf("args: %d %d %d %d %d : %x %x\n", args0.a0,args0.a1,args0.a2,args0.a3,args0.a4, - exit1,env); + sizeof(exit1),sizeof(env)); // goto exit1(321),env; - goto (*exit1)(321),env; + goto (*exit1)(0),env; } @@ -36,7 +36,7 @@ { printf("args3: %d %d %d %d %d : %x %x %x %x\n", args0.a0,args0.a1,args0.a2,args0.a3,args0.a4,i,j,k,l); - if (args0.a0==args1.a0) exit(); + if (args0.a0==args1.a0) exit(0); goto carg4(args0,args1,j,k,l,i); }