Mercurial > hg > CbC > old > device
diff test/tmp1.c @ 0:d35df41eac69
Initial revision
author | kono |
---|---|
date | Thu, 13 Jan 2000 02:41:41 +0900 |
parents | |
children | 096559f07a70 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tmp1.c Thu Jan 13 02:41:41 2000 +0900 @@ -0,0 +1,51 @@ + +main(ac,av) +int ac; +char *av[]; +{ + if (ac>1) + goto code1(av,return); + goto code1(ac,av); +} + +code code3(a,b,c,d,e,f) +char a,b; +int c,d,e,f; +{ + if(a) + goto code3(a,b,c,d,e,f); + else + goto code3(a+3,b+3,c+3,d+3,e+3,f+3); +} + +code code4(a,b,c,d,e,f) +char a,b; +int c,d,e,f; +{ + int i,j; + if(a) + goto code3(a,b,c,d,e,f); + else + goto code3(a+i,b+j,c+i,d+3,e+3,f+3); +} + +code code0(ac,av) +int ac; +char *av[]; +{ + goto code0(ac,av); +} + +code code1(ac,av) +int ac; +char *av[]; +{ + code (*f)(); + f = ac; + if (ac>3) + goto code1(ac,av); + else if (ac>2) + goto code1(av,ac); + else + goto (*f)(ac,av); +}