1: # include "mille.h"
2:
3: /*
4: * @(#)types.c 1.1 (Berkeley) 4/1/82
5: */
6:
7: isrepair(card)
8: reg CARD card; {
9:
10: return card == C_GAS || card == C_SPARE || card == C_REPAIRS || card == C_INIT;
11: }
12:
13: safety(card)
14: reg CARD card; {
15:
16: switch (card) {
17: case C_EMPTY:
18: case C_GAS:
19: case C_GAS_SAFE:
20: return C_GAS_SAFE;
21: case C_FLAT:
22: case C_SPARE:
23: case C_SPARE_SAFE:
24: return C_SPARE_SAFE;
25: case C_CRASH:
26: case C_REPAIRS:
27: case C_DRIVE_SAFE:
28: return C_DRIVE_SAFE;
29: case C_GO:
30: case C_STOP:
31: case C_RIGHT_WAY:
32: case C_LIMIT:
33: case C_END_LIMIT:
34: return C_RIGHT_WAY;
35: }
36: /* NOTREACHED */
37: }
Defined functions
safety
defined in line
13; used 20 times
- in /usr/src/games/mille/comp.c line
198-201(3),
221-222(2),
244,
252-256(3),
269,
276-279(2),
294,
363,
408-413(3)
- in /usr/src/games/mille/move.c line
219,
232,
262