Commit | Line | Data |
---|---|---|
8aa0e21b KB |
1 | /* |
2 | * Copyright (c) 1982 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
7 | #ifndef lint | |
8 | static char sccsid[] = "@(#)types.c 5.1 (Berkeley) %G%"; | |
9 | #endif not lint | |
10 | ||
11 | # include "mille.h" | |
12 | ||
13 | /* | |
14 | * @(#)types.c 1.1 (Berkeley) 4/1/82 | |
15 | */ | |
16 | ||
17 | isrepair(card) | |
18 | reg CARD card; { | |
19 | ||
20 | return card == C_GAS || card == C_SPARE || card == C_REPAIRS || card == C_INIT; | |
21 | } | |
22 | ||
23 | safety(card) | |
24 | reg CARD card; { | |
25 | ||
26 | switch (card) { | |
27 | case C_EMPTY: | |
28 | case C_GAS: | |
29 | case C_GAS_SAFE: | |
30 | return C_GAS_SAFE; | |
31 | case C_FLAT: | |
32 | case C_SPARE: | |
33 | case C_SPARE_SAFE: | |
34 | return C_SPARE_SAFE; | |
35 | case C_CRASH: | |
36 | case C_REPAIRS: | |
37 | case C_DRIVE_SAFE: | |
38 | return C_DRIVE_SAFE; | |
39 | case C_GO: | |
40 | case C_STOP: | |
41 | case C_RIGHT_WAY: | |
42 | case C_LIMIT: | |
43 | case C_END_LIMIT: | |
44 | return C_RIGHT_WAY; | |
45 | } | |
46 | /* NOTREACHED */ | |
47 | } | |
48 |