annotate test/tmp.c @ 75:92dcf107a837 c-code-output

c code output
author kono
date Mon, 24 Feb 2003 19:50:20 +0900
parents 64a4e3789fd2
children 096559f07a70
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));
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
31 }