Mercurial > hg > CbC > CbC_gcc
view CbC-examples/tmp2.c @ 103:edcadcec937d
modify __rectype
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 Mar 2012 17:11:33 +0900 |
parents | 365b84b6fe04 |
children | 5d30d517ebed |
line wrap: on
line source
#define __environment _CbC_environment #define __return _CbC_return #include "stdio.h" int main(ac,av) int ac; char *av[]; { int i; i=main0(ac,av); fprintf(stdout,"#0012:1: %s %d\n",av[0],i); return 0; } int main0(ac,av) int ac; char *av[]; { fprintf(stdout,"#0021:2: %s\n",av[0]); goto code0(av,__return,__environment); } __code code0(av,ret,retenv) char *av[]; __code (*ret)(); void *retenv; { char *p; p = av[0]; fprintf(stdout,"#0032:3: %s\n",p); goto code1(av,ret,retenv); } __code code1(av,ret,retenv) char *av[]; __code (*ret)(); void *retenv; { fprintf(stdout,"#0041:4: %s\n",av[0]); goto (*ret)(1234,retenv); }