Mercurial > hg > CbC > old > device
diff test/test1.c @ 880:5313ed059cee
no tabs in source
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 03 Apr 2014 10:43:01 +0900 |
parents | c2c709727221 |
children |
line wrap: on
line diff
--- a/test/test1.c Thu Apr 03 10:34:02 2014 +0900 +++ b/test/test1.c Thu Apr 03 10:43:01 2014 +0900 @@ -63,43 +63,43 @@ struct f0_save { /* Specialized Return Continuation */ - __code (*ret)(); - __code (*exit1)(); - void *exit1env; - int jj; + __code (*ret)(); + __code (*exit1)(); + void *exit1env; + int jj; }; __code f1(int i,void *sp) ; __code f0(int i,int j,__code(*exit2)(), void *exit2env,void *sp) { - struct f0_save *c; + struct f0_save *c; printf("#0075:f0 1 sp: %x\n",sp-stack0); - sp -= sizeof(struct f0_save); + sp -= sizeof(struct f0_save); printf("#0077:f0 2 sp: %x\n",sp-stack0); - c = sp; - c->jj = j; + c = sp; + c->jj = j; c->exit1 = exit2; c->exit1env = exit2env; - c->ret = f1; + c->ret = f1; printf("#0083:f0 3 sp: %x\n",sp-stack0); - goto f(i,sp); + goto f(i,sp); } __code print(int i,int j,__code (*exit1)(),void*exit1env); __code f1(int i,void *sp) { - int j; - int *exit2env; - __code (*exit2)(); - struct f0_save *c; + int j; + int *exit2env; + __code (*exit2)(); + struct f0_save *c; c = sp; j = c->jj; exit2 = c->exit1; exit2env = c->exit1env; - sp += sizeof(struct f0_save); - goto print(i,j,exit2,exit2env); + sp += sizeof(struct f0_save); + goto print(i,j,exit2,exit2env); } int main( int ac, char *av[])