Mercurial > hg > CbC > old > device
comparison test/arg.c @ 54:1a6b6a7bdca6
fact-a
author | kono |
---|---|
date | Tue, 18 Feb 2003 20:34:46 +0900 |
parents | 64a4e3789fd2 |
children | 94564b45c4f3 |
comparison
equal
deleted
inserted
replaced
53:64a4e3789fd2 | 54:1a6b6a7bdca6 |
---|---|
19 code args(struct arg args0,code exit1(),void *env) | 19 code args(struct arg args0,code exit1(),void *env) |
20 { | 20 { |
21 printf("args: %d %d %d %d %d : %x %x\n", | 21 printf("args: %d %d %d %d %d : %x %x\n", |
22 args0.a0,args0.a1,args0.a2,args0.a3,args0.a4, | 22 args0.a0,args0.a1,args0.a2,args0.a3,args0.a4, |
23 exit1,env); | 23 exit1,env); |
24 goto (*exit1)(0),env; | 24 goto (*exit1)(321),env; |
25 } | 25 } |
26 | 26 |
27 | |
28 int main1(int n) | |
29 { | |
30 goto arg1(0,1,2,3,4,return,environment); | |
31 return n; | |
32 } | |
27 | 33 |
28 int main( int ac, char *av[]) | 34 int main( int ac, char *av[]) |
29 { | 35 { |
30 int n; | 36 int n; |
31 goto arg1(0,1,2,3,4,return,environment); | 37 n = main1(123); |
38 printf("321=%d\n",n); | |
32 } | 39 } |
33 | 40 |