annotate test/tmp6.c @ 6:bf602558130d

continuation
author kono
date Thu, 13 Jan 2000 13:41:09 +0900
parents d35df41eac69
children 096559f07a70
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
1 #include "stdio.h"
d35df41eac69 Initial revision
kono
parents:
diff changeset
2
d35df41eac69 Initial revision
kono
parents:
diff changeset
3 int
d35df41eac69 Initial revision
kono
parents:
diff changeset
4 main(ac,av)
d35df41eac69 Initial revision
kono
parents:
diff changeset
5 int ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
6 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
7 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
8 int i;
d35df41eac69 Initial revision
kono
parents:
diff changeset
9
6
bf602558130d continuation
kono
parents: 0
diff changeset
10 if(ac!=2) {
bf602558130d continuation
kono
parents: 0
diff changeset
11 fprintf(stderr,"must have one neumeric argument.\n");
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
12 return(0);
6
bf602558130d continuation
kono
parents: 0
diff changeset
13 }
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
14 i=main0(ac,av,return,environment);
d35df41eac69 Initial revision
kono
parents:
diff changeset
15 fprintf(stderr,"1: %s %d\n",av[0],i);
d35df41eac69 Initial revision
kono
parents:
diff changeset
16 return i;
d35df41eac69 Initial revision
kono
parents:
diff changeset
17 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
18
d35df41eac69 Initial revision
kono
parents:
diff changeset
19 int
d35df41eac69 Initial revision
kono
parents:
diff changeset
20 main0(ac,av,ret,retenv)
d35df41eac69 Initial revision
kono
parents:
diff changeset
21 int ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
22 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
23 code (*ret)();
d35df41eac69 Initial revision
kono
parents:
diff changeset
24 void *retenv;
d35df41eac69 Initial revision
kono
parents:
diff changeset
25 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
26 int i,j,k;
d35df41eac69 Initial revision
kono
parents:
diff changeset
27 i=123;
d35df41eac69 Initial revision
kono
parents:
diff changeset
28 j=456;
d35df41eac69 Initial revision
kono
parents:
diff changeset
29 k = atoi(av[1]);
d35df41eac69 Initial revision
kono
parents:
diff changeset
30 fprintf(stderr,"2: av=%x av[0]=%x %s\n",av,av[0],av[0]);
d35df41eac69 Initial revision
kono
parents:
diff changeset
31 goto code0(i,j,k,av,ret,retenv,return,environment);
d35df41eac69 Initial revision
kono
parents:
diff changeset
32 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
33
d35df41eac69 Initial revision
kono
parents:
diff changeset
34 code code0(i,j,k,av,ret,retenv,ret1,ret1env)
d35df41eac69 Initial revision
kono
parents:
diff changeset
35 int i,j,k;
d35df41eac69 Initial revision
kono
parents:
diff changeset
36 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
37 code (*ret)();
d35df41eac69 Initial revision
kono
parents:
diff changeset
38 void *retenv;
d35df41eac69 Initial revision
kono
parents:
diff changeset
39 code (*ret1)();
d35df41eac69 Initial revision
kono
parents:
diff changeset
40 void *ret1env;
d35df41eac69 Initial revision
kono
parents:
diff changeset
41 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
42 char *p;
d35df41eac69 Initial revision
kono
parents:
diff changeset
43 p = av[0];
d35df41eac69 Initial revision
kono
parents:
diff changeset
44 fprintf(stderr,"3: i=%d j=%d k=%d av=%x p=%s\n",i,j,k,av,p);
d35df41eac69 Initial revision
kono
parents:
diff changeset
45 goto code1(i,j,k,av,ret,retenv,ret1,ret1env);
d35df41eac69 Initial revision
kono
parents:
diff changeset
46 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
47
d35df41eac69 Initial revision
kono
parents:
diff changeset
48 code code1(i,j,k,av,ret,retenv,ret1,ret1env)
d35df41eac69 Initial revision
kono
parents:
diff changeset
49 int i,j,k;
d35df41eac69 Initial revision
kono
parents:
diff changeset
50 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
51 code (*ret)();
d35df41eac69 Initial revision
kono
parents:
diff changeset
52 void *retenv;
d35df41eac69 Initial revision
kono
parents:
diff changeset
53 code (*ret1)();
d35df41eac69 Initial revision
kono
parents:
diff changeset
54 void *ret1env;
d35df41eac69 Initial revision
kono
parents:
diff changeset
55 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
56 fprintf(stderr,"4: %s\n",av[0]);
d35df41eac69 Initial revision
kono
parents:
diff changeset
57 goto code2(i,j,k,av,ret,retenv,ret1,ret1env);
d35df41eac69 Initial revision
kono
parents:
diff changeset
58 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
59
d35df41eac69 Initial revision
kono
parents:
diff changeset
60 code code2(i,j,k,av,ret,retenv,ret1,ret1env)
d35df41eac69 Initial revision
kono
parents:
diff changeset
61 int i,j,k;
d35df41eac69 Initial revision
kono
parents:
diff changeset
62 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
63 code (*ret)();
d35df41eac69 Initial revision
kono
parents:
diff changeset
64 void *retenv;
d35df41eac69 Initial revision
kono
parents:
diff changeset
65 code (*ret1)();
d35df41eac69 Initial revision
kono
parents:
diff changeset
66 void *ret1env;
d35df41eac69 Initial revision
kono
parents:
diff changeset
67 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
68 fprintf(stderr,"5: %s\n",av[0]);
d35df41eac69 Initial revision
kono
parents:
diff changeset
69 fprintf(stderr,"5: i=%d j=%d k=%d av=%x\n",i,j,k,av);
d35df41eac69 Initial revision
kono
parents:
diff changeset
70 if (k>3)
d35df41eac69 Initial revision
kono
parents:
diff changeset
71 goto (*ret1)(1234),ret1env;
d35df41eac69 Initial revision
kono
parents:
diff changeset
72 goto (*ret)(1234),retenv;
d35df41eac69 Initial revision
kono
parents:
diff changeset
73 }