1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32: #include <string.h>
33:
34:
35: void crc_start(void);
36: unsigned long crc(const char *, int);
37:
38:
39: int score(void);
40: void done(int) __attribute__((__noreturn__));
41: void die(int);
42:
43:
44: void init(void);
45: char *decr(int, int, int, int, int);
46: void linkdata(void);
47: void trapdel(int);
48: void startup(void);
49:
50:
51: void getin(char **, char **);
52: int yes(int, int, int);
53: int yesm(int, int, int);
54: int next(void);
55: void rdata(void);
56: int rnum(void);
57: void rdesc(int);
58: void rtrav(void);
59: #ifdef DEBUG
60: void twrite(int);
61: #endif
62: void rvoc(void);
63: void rlocs(void);
64: void rdflt(void);
65: void rliq(void);
66: void rhints(void);
67: void rspeak(int);
68: void mspeak(int);
69: struct text;
70: void speak(const struct text *);
71: void pspeak(int, int);
72:
73:
74: int save(const char *);
75: int restore(const char *);
76:
77:
78: int toting(int);
79: int here(int);
80: int at(int);
81: int liq2(int);
82: int liq(void);
83: int liqloc(int);
84: int bitset(int, int);
85: int forced(int);
86: int dark(void);
87: int pct(int);
88: int fdwarf(void);
89: int march(void);
90: int mback(void);
91: int specials(void);
92: int trbridge(void);
93: void badmove(void);
94: void bug(int) __attribute__((__noreturn__));
95: void checkhints(void);
96: int trsay(void);
97: int trtake(void);
98: int dropper(void);
99: int trdrop(void);
100: int tropen(void);
101: int trkill(void);
102: int trtoss(void);
103: int trfeed(void);
104: int trfill(void);
105: void closing(void);
106: void caveclose(void);
107:
108:
109: void dstroy(int);
110: void juggle(int);
111: void move(int, int);
112: int put(int, int, int);
113: void carry(int, int);
114: void drop(int, int);
115: int vocab(const char *, int, int);
116:
117:
118: #define copystr(src, dest) strcpy((dest), (src))
119: #define weq(str1, str2) (!strncmp((str1), (str2), 5))
120: #define length(str) (strlen((str)) + 1)
121:
122: void prht(void);
123:
124:
125: void datime(int *, int *);
126: void poof(void);
127: int Start(void);
128: int wizard(void);
129: void ciao(void);
130: int ran(int);