4
* decision tree and other expression stuff
9
struct tree *tr_leaf1, *tr_leaf2;
21
#define NIL ((struct tree *) 0)
24
#define SUIT_DIAMOND 1
30
#define MAKECARD(suit, rank) ((card)(((suit)<<6)|(rank)))
32
#define MAKECONTRACT(suit, tricks) (tricks*5+suit)
33
#define C_SUIT(c) ((c)>>6)
34
#define C_RANK(c) ((c)&0x3F)
37
#define COMPASS_NORTH 0
38
#define COMPASS_EAST 1
39
#define COMPASS_SOUTH 2
40
#define COMPASS_WEST 3
42
#define VULNERABLE_NONE 0
43
#define VULNERABLE_NS 1
44
#define VULNERABLE_EW 2
45
#define VULNERABLE_ALL 3
61
#define TRT_ARMINUS 11
62
#define TRT_ARTIMES 12
63
#define TRT_ARDIVIDE 13
65
#define TRT_HCPTOTAL 15
69
#define TRT_HASCARD 19
71
#define TRT_THENELSE 21
72
#define TRT_LOSERTOTAL 22
76
#define TRT_CONTROL 26
77
#define TRT_CONTROLTOTAL 27
81
#define TRT_QUALITY 31
82
#define TRT_PT0TOTAL 32
84
#define TRT_PT1TOTAL 34
86
#define TRT_PT2TOTAL 36
88
#define TRT_PT3TOTAL 38
90
#define TRT_PT4TOTAL 40
92
#define TRT_PT5TOTAL 42
94
#define TRT_PT6TOTAL 44
96
#define TRT_PT7TOTAL 46
98
#define TRT_PT8TOTAL 48
100
#define TRT_PT9TOTAL 50
104
* Actions to be taken
115
long acuf_lowbnd_expr1;
116
long acuf_highbnd_expr1;
117
long acuf_lowbnd_expr2;
118
long acuf_highbnd_expr2;
126
struct action *ac_next;
128
struct tree *ac_expr1;
129
struct tree *ac_expr2;
134
struct acuft2d acu_f2d;
139
#define ACT_PRINTALL 0
141
#define ACT_AVERAGE 2
142
#define ACT_FREQUENCY 3
143
#define ACT_PRINTCOMPACT 4
144
#define ACT_EVALCONTRACT 5
145
#define ACT_PRINTPBN 6
146
#define ACT_PRINTEW 7
147
#define ACT_FREQUENCY2D 8
148
#define ACT_PRINTONELINE 9
149
#define ACT_PRINTES 10
151
/* Constants for CCCC and Quality */
162
#define bcopy(s,t,size) memcpy(t,s,size)