annotate test/tmp.c @ 417:98888da30b35

code jump fixes (not finished)
author kono
date Mon, 25 Oct 2004 01:16:28 +0900
parents 096559f07a70
children 0c256ea2a97e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
1
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
2 int
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
3 main1(int ac,char *av[],int (*f)(),int g())
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
4 {
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
5 return (*f)(ac)+g(ac);
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
6 }
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
7
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
8 int
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
9 g(int k) {
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
10 return k+1;
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
11 }
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
12
d35df41eac69 Initial revision
kono
parents:
diff changeset
13 main0(ac,av)
d35df41eac69 Initial revision
kono
parents:
diff changeset
14 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
15 return ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
16 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
17
d35df41eac69 Initial revision
kono
parents:
diff changeset
18 main(ac,av)
d35df41eac69 Initial revision
kono
parents:
diff changeset
19 int ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
20 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
21 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
22 register int i;
d35df41eac69 Initial revision
kono
parents:
diff changeset
23 register char *p;
d35df41eac69 Initial revision
kono
parents:
diff changeset
24
d35df41eac69 Initial revision
kono
parents:
diff changeset
25 p = av[1];
d35df41eac69 Initial revision
kono
parents:
diff changeset
26 if (!p) return;
d35df41eac69 Initial revision
kono
parents:
diff changeset
27 i = p[1];
d35df41eac69 Initial revision
kono
parents:
diff changeset
28 p = p+i;
d35df41eac69 Initial revision
kono
parents:
diff changeset
29 printf("%d %s\n",i,p-i);
53
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
30 printf("%d\n",main1(ac,av,g,g));
172
096559f07a70 some check
kono
parents: 53
diff changeset
31 return 0;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
32 }