annotate test/goto.c @ 109:e09f9de6f5d3

*** empty log message ***
author kono
date Wed, 19 Mar 2003 02:22:33 +0900
parents 83d901658ce9
children 096559f07a70
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
1
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
2
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
3 code (*conv)(int,code (*)());
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
4 code a2(int i,code conv());
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
5 code a3(int i,code conv());
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
6 code a4(int i,code conv());
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
7 code a5(int i,code conv());
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
8
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
9 code (*exit0)(int);
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
10 void *env;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
11
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
12 code
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
13 a2(int i,code conv())
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
14 {
80
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
15 printf("a2 %d %x\n",i,conv);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
16 goto conv(i+1,a4);
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
17 }
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
18
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
19 code
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
20 a3(int i,code (*conv)())
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
21 {
80
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
22 printf("a3 %d %x\n",i,conv);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
23 goto conv(i+1,a5);
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
24 }
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
25
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
26 code
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
27 a4(int i,code conv())
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
28 {
80
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
29 printf("a4 %d %x\n",i,conv);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
30 goto (*conv)(i+1,a6);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
31 }
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
32
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
33 code
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
34 a5(int i,code (*conv)())
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
35 {
80
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
36 printf("a5 %d %x\n",i,conv);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
37 goto (*conv)(i+1,i+2,i+3,a7);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
38 }
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
39
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
40 code
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
41 a6(int i,int j,int k,code conv())
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
42 {
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
43 printf("a6 %d %x\n",i,conv);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
44 goto conv(i+1,j,k,a8);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
45 }
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
46
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
47 code
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
48 a7(int i,,int j,int k,code (*conv)())
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
49 {
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
50 printf("a7 %d %x\n",i,conv);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
51 goto conv(i+1,j,k,a9);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
52 }
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
53
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
54 code
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
55 a8(int i,int j,int k,code conv())
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
56 {
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
57 printf("a8 %d %x\n",i,conv);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
58 goto (*conv)(i+1,j,k,exit0);
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
59 }
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
60
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
61 code
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
62 a9(int i,int j,int k,code (*conv)())
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
63 {
83d901658ce9 *** empty log message ***
kono
parents: 79
diff changeset
64 printf("a9 %d %x\n",i,conv);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
65 goto (*conv)(i+1),env;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
66 }
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
67
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
68 main(int ac,char *av[]) {
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
69 exit0 = return;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
70 env = environment;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
71 conv = a2;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
72 goto conv(1,a3);
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
73 }