Mercurial > hg > CbC > old > device
comparison test/tmp2.c @ 172:096559f07a70
some check
author | kono |
---|---|
date | Tue, 25 Nov 2003 11:47:41 +0900 |
parents | d35df41eac69 |
children | 682c8ec38d45 |
comparison
equal
deleted
inserted
replaced
171:3902240d4930 | 172:096559f07a70 |
---|---|
5 int ac; | 5 int ac; |
6 char *av[]; | 6 char *av[]; |
7 { | 7 { |
8 int i; | 8 int i; |
9 i=main0(ac,av); | 9 i=main0(ac,av); |
10 fprintf(stderr,"1: %s %d\n",av[0],i); | 10 fprintf(stdout,"1: %s %d\n",av[0],i); |
11 return i; | 11 return 0; |
12 } | 12 } |
13 | 13 |
14 int | 14 int |
15 main0(ac,av) | 15 main0(ac,av) |
16 int ac; | 16 int ac; |
17 char *av[]; | 17 char *av[]; |
18 { | 18 { |
19 fprintf(stderr,"2: %s\n",av[0]); | 19 fprintf(stdout,"2: %s\n",av[0]); |
20 goto code0(av,return,environment); | 20 goto code0(av,return,environment); |
21 } | 21 } |
22 | 22 |
23 code code0(av,ret,retenv) | 23 code code0(av,ret,retenv) |
24 char *av[]; | 24 char *av[]; |
25 code (*ret)(); | 25 code (*ret)(); |
26 void *retenv; | 26 void *retenv; |
27 { | 27 { |
28 char *p; | 28 char *p; |
29 p = av[0]; | 29 p = av[0]; |
30 fprintf(stderr,"3: %s\n",p); | 30 fprintf(stdout,"3: %s\n",p); |
31 goto code1(av,ret,retenv); | 31 goto code1(av,ret,retenv); |
32 } | 32 } |
33 | 33 |
34 code code1(av,ret,retenv) | 34 code code1(av,ret,retenv) |
35 char *av[]; | 35 char *av[]; |
36 code (*ret)(); | 36 code (*ret)(); |
37 void *retenv; | 37 void *retenv; |
38 { | 38 { |
39 fprintf(stderr,"4: %s\n",av[0]); | 39 fprintf(stdout,"4: %s\n",av[0]); |
40 goto (*ret)(1234),retenv; | 40 goto (*ret)(1234),retenv; |
41 } | 41 } |