|
|
1.1 root 1: /*
2: * Copyright (c) 1982 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted
6: * provided that: (1) source distributions retain this entire copyright
7: * notice and comment, and (2) distributions including binaries display
8: * the following acknowledgement: ``This product includes software
9: * developed by the University of California, Berkeley and its contributors''
10: * in the documentation or other materials provided with the distribution
11: * and in all advertising materials mentioning features or use of this
12: * software. Neither the name of the University nor the names of its
13: * contributors may be used to endorse or promote products derived
14: * from this software without specific prior written permission.
15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18: */
19:
20: #ifndef lint
21: static char sccsid[] = "@(#)types.c 5.4 (Berkeley) 6/1/90";
22: #endif /* not lint */
23:
24: # include "mille.h"
25:
26: /*
27: * @(#)types.c 1.1 (Berkeley) 4/1/82
28: */
29:
30: isrepair(card)
31: reg CARD card; {
32:
33: return card == C_GAS || card == C_SPARE || card == C_REPAIRS || card == C_INIT;
34: }
35:
36: safety(card)
37: reg CARD card; {
38:
39: switch (card) {
40: case C_EMPTY:
41: case C_GAS:
42: case C_GAS_SAFE:
43: return C_GAS_SAFE;
44: case C_FLAT:
45: case C_SPARE:
46: case C_SPARE_SAFE:
47: return C_SPARE_SAFE;
48: case C_CRASH:
49: case C_REPAIRS:
50: case C_DRIVE_SAFE:
51: return C_DRIVE_SAFE;
52: case C_GO:
53: case C_STOP:
54: case C_RIGHT_WAY:
55: case C_LIMIT:
56: case C_END_LIMIT:
57: return C_RIGHT_WAY;
58: }
59: /* NOTREACHED */
60: }
61:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.