annotate test/longcode.c @ 558:528fed826f17 partial-evaluation

const value switch statement prune.
author kono
date Sat, 07 Jan 2006 12:46:38 +0900
parents b6eb97f0c11d
children 682c8ec38d45
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
519
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
1
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
2 typedef struct teki {
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
3 float x;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
4 float y;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
5 float sx;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
6 float sy;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
7 int charno;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
8 char tama;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
9 char f;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
10 int p;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
11 int move;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
12 int sc;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
13 int dt1;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
14 int dt2;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
15 } teki;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
16
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
17
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
18
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
19 typedef struct player {
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
20 int x;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
21 int y;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
22 int ch;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
23 int point;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
24 char bf;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
25 int muteki;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
26 int zanki;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
27 int ccount;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
28 } player;
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
29
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
30 code
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
31 put_enemy_bung(
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
32 code(*junction)(int,teki *,player,struct move_interface),
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
33 int tekino,
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
34 teki *enemy,
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
35 player jiki,
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
36 struct move_interface interface);
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
37
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
38 code
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
39 move13_1(int tekino,teki *enemy,player jiki,struct move_interface interface);
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
40
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
41 code
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
42 move13(int tekino,teki *enemy,player jiki,struct move_interface interface)
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
43 {
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
44 if (enemy[keyenemyno].f == 0 ) {
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
45
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
46 goto put_enemy_bung(move13_1,tekino,enemy,jiki,interface);
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
47 }
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
48 goto move13_1(tekino,enemy,jiki,interface);
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
49 }
b6eb97f0c11d *** empty log message ***
kono
parents:
diff changeset
50