53
|
1 #include "stdio.h"
|
|
2
|
|
3 struct arg {
|
|
4 int a0;int a1;int a2;int a3;int a4;
|
|
5 };
|
|
6
|
|
7 code arg1(int arg0,int arg1,int arg2,int arg3,int arg4,code(*exit1)(),void *env)
|
|
8 {
|
|
9 struct arg args0;
|
|
10 printf("arg1: %d %d %d %d %d : %x %x\n",arg0,arg1,arg2,arg3,arg4,exit1,env);
|
|
11 args0.a0 = arg0;
|
|
12 args0.a1 = arg1;
|
|
13 args0.a2 = arg2;
|
|
14 args0.a3 = arg3;
|
|
15 args0.a4 = arg4;
|
|
16 goto args(args0,exit1,env);
|
|
17 }
|
|
18
|
|
19 code args(struct arg args0,code exit1(),void *env)
|
|
20 {
|
|
21 printf("args: %d %d %d %d %d : %x %x\n",
|
|
22 args0.a0,args0.a1,args0.a2,args0.a3,args0.a4,
|
|
23 exit1,env);
|
|
24 goto (*exit1)(0),env;
|
|
25 }
|
|
26
|
|
27
|
|
28 int main( int ac, char *av[])
|
|
29 {
|
|
30 int n;
|
|
31 goto arg1(0,1,2,3,4,return,environment);
|
|
32 }
|
|
33
|