Mercurial > hg > CbC > old > device
diff test/test1.c @ 720:6b7372e17970
*** empty log message ***
author | kono |
---|---|
date | Sat, 12 Apr 2008 03:53:11 +0900 |
parents | 682c8ec38d45 |
children | 3f1f6c0610c1 |
line wrap: on
line diff
--- a/test/test1.c Wed Nov 28 19:38:01 2007 +0900 +++ b/test/test1.c Sat Apr 12 03:53:11 2008 +0900 @@ -2,7 +2,9 @@ test for CbC converted __code from C */ -#include "stdio.h" +#include <stdio.h> + +extern void *malloc(int); typedef void *stack; @@ -107,10 +109,10 @@ j = i; printf("#0108:sp: %x %x\n",sp-(int*)stack0,sizeof(*stack0)); - goto f0(i,j,return,environment,sp); + goto f0(i,j,__return,__environment,sp); } -__code print(int i,int j,(*exit1)(),void*exit1env) +__code print(int i,int j,__code (*exit1)(),void*exit1env) { printf("#0114:%d %d\n",i,j); goto (*exit1)(0),exit1env;