extern.h revision 1.4 1 1.4 jsm /* $NetBSD: extern.h,v 1.4 2001/03/25 20:43:58 jsm Exp $ */
2 1.1 christos
3 1.3 christos /*-
4 1.3 christos * Copyright (c) 1997 The NetBSD Foundation, Inc.
5 1.3 christos * All rights reserved.
6 1.3 christos *
7 1.3 christos * This code is derived from software contributed to The NetBSD Foundation
8 1.3 christos * by Christos Zoulas.
9 1.1 christos *
10 1.1 christos * Redistribution and use in source and binary forms, with or without
11 1.1 christos * modification, are permitted provided that the following conditions
12 1.1 christos * are met:
13 1.1 christos * 1. Redistributions of source code must retain the above copyright
14 1.1 christos * notice, this list of conditions and the following disclaimer.
15 1.1 christos * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 christos * notice, this list of conditions and the following disclaimer in the
17 1.1 christos * documentation and/or other materials provided with the distribution.
18 1.1 christos * 3. All advertising materials mentioning features or use of this software
19 1.1 christos * must display the following acknowledgement:
20 1.3 christos * This product includes software developed by the NetBSD
21 1.3 christos * Foundation, Inc. and its contributors.
22 1.3 christos * 4. Neither the name of The NetBSD Foundation nor the names of its
23 1.3 christos * contributors may be used to endorse or promote products derived
24 1.3 christos * from this software without specific prior written permission.
25 1.1 christos *
26 1.3 christos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 1.3 christos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 1.3 christos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 1.3 christos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 1.3 christos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 1.3 christos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 1.3 christos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 1.3 christos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 1.3 christos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 1.3 christos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 1.3 christos * POSSIBILITY OF SUCH DAMAGE.
37 1.1 christos */
38 1.1 christos #ifndef _EXTERN_H_
39 1.1 christos #define _EXTERN_H_
40 1.1 christos #include <stdio.h>
41 1.1 christos #ifndef __STDC__
42 1.1 christos #include <varargs.h>
43 1.1 christos #else
44 1.1 christos #include <stdarg.h>
45 1.1 christos #endif
46 1.1 christos
47 1.1 christos /* alloc.c */
48 1.1 christos long *alloc __P((unsigned));
49 1.1 christos long *enlarge __P((char *, unsigned));
50 1.1 christos
51 1.1 christos /* hack.apply.c */
52 1.1 christos int doapply __P((void));
53 1.1 christos int holetime __P((void));
54 1.1 christos void dighole __P((void));
55 1.1 christos
56 1.1 christos /* hack.bones.c */
57 1.1 christos void savebones __P((void));
58 1.1 christos int getbones __P((void));
59 1.1 christos
60 1.1 christos /* hack.c */
61 1.1 christos void unsee __P((void));
62 1.1 christos void seeoff __P((int));
63 1.1 christos void domove __P((void));
64 1.1 christos void movobj __P((struct obj *, int, int));
65 1.1 christos int dopickup __P((void));
66 1.1 christos void pickup __P((int));
67 1.1 christos void lookaround __P((void));
68 1.1 christos int monster_nearby __P((void));
69 1.1 christos int rroom __P((int, int));
70 1.1 christos int cansee __P((xchar, xchar));
71 1.1 christos int sgn __P((int));
72 1.1 christos void setsee __P((void));
73 1.1 christos void nomul __P((int));
74 1.1 christos int abon __P((void));
75 1.1 christos int dbon __P((void));
76 1.1 christos void losestr __P((int));
77 1.4 jsm void losehp __P((int, const char *));
78 1.1 christos void losehp_m __P((int, struct monst *));
79 1.1 christos void losexp __P((void));
80 1.1 christos int inv_weight __P((void));
81 1.1 christos int inv_cnt __P((void));
82 1.1 christos long newuexp __P((void));
83 1.1 christos
84 1.1 christos /* hack.cmd.c */
85 1.4 jsm void rhack __P((const char *));
86 1.1 christos int doextcmd __P((void));
87 1.1 christos char lowc __P((int));
88 1.1 christos char unctrl __P((int));
89 1.1 christos int movecmd __P((int));
90 1.1 christos int getdir __P((boolean));
91 1.1 christos void confdir __P((void));
92 1.1 christos int finddir __P((void));
93 1.1 christos int isroom __P((int, int));
94 1.1 christos int isok __P((int, int));
95 1.1 christos
96 1.1 christos /* hack.do.c */
97 1.1 christos int dodrop __P((void));
98 1.1 christos void dropx __P((struct obj *));
99 1.1 christos void dropy __P((struct obj *));
100 1.1 christos int doddrop __P((void));
101 1.1 christos int dodown __P((void));
102 1.1 christos int doup __P((void));
103 1.1 christos void goto_level __P((int, boolean));
104 1.1 christos int donull __P((void));
105 1.1 christos int dopray __P((void));
106 1.1 christos int dothrow __P((void));
107 1.1 christos struct obj *splitobj __P((struct obj *, int));
108 1.1 christos void more_experienced __P((int, int));
109 1.1 christos void set_wounded_legs __P((long, int));
110 1.1 christos void heal_legs __P((void));
111 1.1 christos
112 1.1 christos /* hack.do_name.c */
113 1.4 jsm coord getpos __P((int, const char *));
114 1.1 christos int do_mname __P((void));
115 1.1 christos void do_oname __P((struct obj *));
116 1.1 christos int ddocall __P((void));
117 1.1 christos void docall __P((struct obj *));
118 1.1 christos char *xmonnam __P((struct monst *, int));
119 1.1 christos char *lmonnam __P((struct monst *));
120 1.1 christos char *monnam __P((struct monst *));
121 1.1 christos char *Monnam __P((struct monst *));
122 1.4 jsm char *amonnam __P((struct monst *, const char *));
123 1.4 jsm char *Amonnam __P((struct monst *, const char *));
124 1.1 christos char *Xmonnam __P((struct monst *));
125 1.1 christos char *visctrl __P((int));
126 1.1 christos
127 1.1 christos /* hack.do_wear.c */
128 1.1 christos void off_msg __P((struct obj *));
129 1.1 christos int doremarm __P((void));
130 1.1 christos int doremring __P((void));
131 1.1 christos int dorr __P((struct obj *));
132 1.1 christos int cursed __P((struct obj *));
133 1.1 christos int armoroff __P((struct obj *));
134 1.1 christos int doweararm __P((void));
135 1.1 christos int dowearring __P((void));
136 1.1 christos void ringoff __P((struct obj *));
137 1.1 christos void find_ac __P((void));
138 1.1 christos void glibr __P((void));
139 1.1 christos struct obj *some_armor __P((void));
140 1.1 christos void corrode_armor __P((void));
141 1.1 christos
142 1.1 christos /* hack.dog.c */
143 1.1 christos void makedog __P((void));
144 1.1 christos void initedog __P((struct monst *));
145 1.1 christos void losedogs __P((void));
146 1.1 christos void keepdogs __P((void));
147 1.1 christos void fall_down __P((struct monst *));
148 1.1 christos int dogfood __P((struct obj *));
149 1.1 christos int dog_move __P((struct monst *, int));
150 1.1 christos int inroom __P((xchar, xchar));
151 1.1 christos int tamedog __P((struct monst *, struct obj *));
152 1.1 christos
153 1.1 christos /* hack.eat.c */
154 1.1 christos void init_uhunger __P((void));
155 1.1 christos int opentin __P((void));
156 1.1 christos int Meatdone __P((void));
157 1.1 christos int doeat __P((void));
158 1.1 christos void gethungry __P((void));
159 1.1 christos void morehungry __P((int));
160 1.1 christos void lesshungry __P((int));
161 1.1 christos int unfaint __P((void));
162 1.1 christos void newuhs __P((boolean));
163 1.1 christos int poisonous __P((struct obj *));
164 1.1 christos int eatcorpse __P((struct obj *));
165 1.1 christos
166 1.1 christos /* hack.end.c */
167 1.1 christos int dodone __P((void));
168 1.1 christos void done1 __P((int));
169 1.1 christos void done_intr __P((int));
170 1.1 christos void done_hangup __P((int));
171 1.1 christos void done_in_by __P((struct monst *));
172 1.4 jsm void done __P((const char *));
173 1.1 christos void topten __P((void));
174 1.1 christos void outheader __P((void));
175 1.1 christos struct toptenentry;
176 1.1 christos int outentry __P((int, struct toptenentry *, int));
177 1.1 christos char *itoa __P((int));
178 1.4 jsm const char *ordin __P((int));
179 1.1 christos void clearlocks __P((void));
180 1.4 jsm void hangup __P((int)) __attribute__((__noreturn__));
181 1.1 christos char *eos __P((char *));
182 1.1 christos void charcat __P((char *, int));
183 1.1 christos void prscore __P((int, char **));
184 1.1 christos
185 1.1 christos /* hack.engrave.c */
186 1.1 christos struct engr *engr_at __P((xchar, xchar));
187 1.4 jsm int sengr_at __P((const char *, xchar, xchar));
188 1.1 christos void u_wipe_engr __P((int));
189 1.1 christos void wipe_engr_at __P((xchar, xchar, xchar));
190 1.1 christos void read_engr_at __P((int, int));
191 1.4 jsm void make_engr_at __P((int, int, const char *));
192 1.1 christos int doengrave __P((void));
193 1.1 christos void save_engravings __P((int));
194 1.1 christos void rest_engravings __P((int));
195 1.1 christos void del_engr __P((struct engr *));
196 1.1 christos
197 1.1 christos /* hack.fight.c */
198 1.1 christos int hitmm __P((struct monst *, struct monst *));
199 1.1 christos void mondied __P((struct monst *));
200 1.1 christos void monstone __P((struct monst *));
201 1.1 christos int fightm __P((struct monst *));
202 1.4 jsm int thitu __P((int, int, const char *));
203 1.1 christos boolean hmon __P((struct monst *, struct obj *, int));
204 1.1 christos int attack __P((struct monst *));
205 1.1 christos
206 1.1 christos /* hack.invent.c */
207 1.1 christos struct obj *addinv __P((struct obj *));
208 1.1 christos void useup __P((struct obj *));
209 1.1 christos void freeinv __P((struct obj *));
210 1.1 christos void delobj __P((struct obj *));
211 1.1 christos void freeobj __P((struct obj *));
212 1.1 christos void freegold __P((struct gold *));
213 1.1 christos void deltrap __P((struct trap *));
214 1.1 christos struct monst *m_at __P((int, int));
215 1.1 christos struct obj *o_at __P((int, int));
216 1.1 christos struct obj *sobj_at __P((int, int, int));
217 1.1 christos int carried __P((struct obj *));
218 1.1 christos int carrying __P((int));
219 1.1 christos struct obj *o_on __P((unsigned int, struct obj *));
220 1.1 christos struct trap *t_at __P((int, int));
221 1.1 christos struct gold *g_at __P((int, int));
222 1.1 christos struct obj *mkgoldobj __P((long));
223 1.4 jsm struct obj *getobj __P((const char *, const char *));
224 1.1 christos int ckunpaid __P((struct obj *));
225 1.4 jsm int ggetobj __P((const char *, int (*fn)(struct obj *), int));
226 1.1 christos int askchain __P((struct obj *, char *, int, int (*)(struct obj *),
227 1.1 christos int (*)(struct obj *), int));
228 1.1 christos char obj_to_let __P((struct obj *));
229 1.1 christos void prinv __P((struct obj *));
230 1.1 christos int ddoinv __P((void));
231 1.1 christos void doinv __P((char *));
232 1.1 christos int dotypeinv __P((void));
233 1.1 christos int dolook __P((void));
234 1.1 christos void stackobj __P((struct obj *));
235 1.1 christos int merged __P((struct obj *, struct obj *, int));
236 1.1 christos int countgold __P((void));
237 1.1 christos int doprgold __P((void));
238 1.1 christos int doprwep __P((void));
239 1.1 christos int doprarm __P((void));
240 1.1 christos int doprring __P((void));
241 1.1 christos int digit __P((int));
242 1.1 christos
243 1.1 christos /* hack.ioctl.c */
244 1.1 christos void getioctls __P((void));
245 1.1 christos void setioctls __P((void));
246 1.1 christos int dosuspend __P((void));
247 1.1 christos
248 1.1 christos /* hack.lev.c */
249 1.1 christos void savelev __P((int, xchar));
250 1.4 jsm void bwrite __P((int, const void *, unsigned));
251 1.1 christos void saveobjchn __P((int, struct obj *));
252 1.1 christos void savemonchn __P((int, struct monst *));
253 1.1 christos void savegoldchn __P((int, struct gold *));
254 1.1 christos void savetrapchn __P((int, struct trap *));
255 1.1 christos void getlev __P((int, int, xchar));
256 1.1 christos void mread __P((int, char *, unsigned));
257 1.1 christos void mklev __P((void));
258 1.1 christos
259 1.1 christos /* hack.main.c */
260 1.1 christos void glo __P((int));
261 1.1 christos void askname __P((void));
262 1.1 christos void impossible __P((const char *, ...))
263 1.1 christos __attribute__((__format__(__printf__, 1, 2)));
264 1.1 christos void stop_occupation __P((void));
265 1.1 christos
266 1.1 christos /* hack.makemon.c */
267 1.4 jsm struct monst *makemon __P((const struct permonst *, int, int));
268 1.1 christos coord enexto __P((xchar, xchar));
269 1.1 christos int goodpos __P((int, int));
270 1.1 christos void rloc __P((struct monst *));
271 1.1 christos struct monst *mkmon_at __P((int, int, int));
272 1.1 christos
273 1.1 christos /* hack.mhitu.c */
274 1.1 christos int mhitu __P((struct monst *));
275 1.1 christos int hitu __P((struct monst *, int));
276 1.1 christos
277 1.1 christos /* hack.mklev.c */
278 1.1 christos void makelevel __P((void));
279 1.1 christos int makerooms __P((void));
280 1.1 christos void addrs __P((int, int, int, int));
281 1.1 christos void addrsx __P((int, int, int, int, boolean));
282 1.1 christos struct mkroom;
283 1.1 christos int comp __P((const void *, const void *));
284 1.1 christos coord finddpos __P((int, int, int, int));
285 1.1 christos int okdoor __P((int, int));
286 1.1 christos void dodoor __P((int, int, struct mkroom *));
287 1.1 christos void dosdoor __P((int, int, struct mkroom *, int));
288 1.1 christos int maker __P((schar, schar, schar, schar));
289 1.1 christos void makecorridors __P((void));
290 1.1 christos void join __P((int, int));
291 1.1 christos void make_niches __P((void));
292 1.1 christos void makevtele __P((void));
293 1.1 christos void makeniche __P((boolean));
294 1.1 christos void mktrap __P((int, int, struct mkroom *));
295 1.1 christos
296 1.1 christos /* hack.mkmaze.c */
297 1.1 christos void makemaz __P((void));
298 1.1 christos void walkfrom __P((int, int));
299 1.1 christos void move __P((int *, int *, int));
300 1.1 christos int okay __P((int, int, int));
301 1.1 christos coord mazexy __P((void));
302 1.1 christos
303 1.1 christos /* hack.mkobj.c */
304 1.1 christos struct obj *mkobj_at __P((int, int, int));
305 1.1 christos void mksobj_at __P((int, int, int));
306 1.1 christos struct obj *mkobj __P((int));
307 1.1 christos struct obj *mksobj __P((int));
308 1.1 christos int letter __P((int));
309 1.1 christos int weight __P((struct obj *));
310 1.1 christos void mkgold __P((long, int, int));
311 1.1 christos
312 1.1 christos /* hack.mkshop.c */
313 1.1 christos void mkshop __P((void));
314 1.1 christos void mkzoo __P((int));
315 1.4 jsm const struct permonst *morguemon __P((void));
316 1.1 christos void mkswamp __P((void));
317 1.1 christos int nexttodoor __P((int, int));
318 1.1 christos int has_dnstairs __P((struct mkroom *));
319 1.1 christos int has_upstairs __P((struct mkroom *));
320 1.1 christos int isbig __P((struct mkroom *));
321 1.1 christos int dist2 __P((int, int, int, int));
322 1.1 christos int sq __P((int));
323 1.1 christos
324 1.1 christos /* hack.mon.c */
325 1.1 christos void movemon __P((void));
326 1.4 jsm void justswld __P((struct monst *, const char *));
327 1.4 jsm void youswld __P((struct monst *, int, int, const char *));
328 1.1 christos int dochugw __P((struct monst *));
329 1.1 christos int dochug __P((struct monst *));
330 1.1 christos int m_move __P((struct monst *, int));
331 1.1 christos void mpickgold __P((struct monst *));
332 1.1 christos void mpickgems __P((struct monst *));
333 1.1 christos int mfndpos __P((struct monst *, coord[9 ], int[9 ], int));
334 1.1 christos int dist __P((int, int));
335 1.4 jsm void poisoned __P((const char *, const char *));
336 1.1 christos void mondead __P((struct monst *));
337 1.1 christos void replmon __P((struct monst *, struct monst *));
338 1.1 christos void relmon __P((struct monst *));
339 1.1 christos void monfree __P((struct monst *));
340 1.1 christos void dmonsfree __P((void));
341 1.1 christos void unstuck __P((struct monst *));
342 1.1 christos void killed __P((struct monst *));
343 1.4 jsm void kludge __P((const char *, const char *));
344 1.1 christos void rescham __P((void));
345 1.4 jsm int newcham __P((struct monst *, const struct permonst *));
346 1.1 christos void mnexto __P((struct monst *));
347 1.1 christos int ishuman __P((struct monst *));
348 1.1 christos void setmangry __P((struct monst *));
349 1.1 christos int canseemon __P((struct monst *));
350 1.1 christos
351 1.1 christos /* hack.monst.c */
352 1.1 christos
353 1.1 christos /* hack.o_init.c */
354 1.1 christos int letindex __P((int));
355 1.1 christos void init_objects __P((void));
356 1.1 christos int probtype __P((int));
357 1.1 christos void setgemprobs __P((void));
358 1.1 christos void oinit __P((void));
359 1.1 christos void savenames __P((int));
360 1.1 christos void restnames __P((int));
361 1.1 christos int dodiscovered __P((void));
362 1.1 christos int interesting_to_discover __P((int));
363 1.1 christos
364 1.1 christos /* hack.objnam.c */
365 1.1 christos char *strprepend __P((char *, char *));
366 1.1 christos char *sitoa __P((int));
367 1.1 christos char *typename __P((int));
368 1.1 christos char *xname __P((struct obj *));
369 1.1 christos char *doname __P((struct obj *));
370 1.4 jsm void setan __P((const char *, char *));
371 1.4 jsm char *aobjnam __P((struct obj *, const char *));
372 1.1 christos char *Doname __P((struct obj *));
373 1.1 christos struct obj *readobjnam __P((char *));
374 1.1 christos
375 1.1 christos /* hack.options.c */
376 1.1 christos void initoptions __P((void));
377 1.1 christos void parseoptions __P((char *, boolean));
378 1.1 christos int doset __P((void));
379 1.1 christos
380 1.1 christos /* hack.pager.c */
381 1.1 christos int dowhatis __P((void));
382 1.1 christos void intruph __P((int));
383 1.1 christos void page_more __P((FILE *, int));
384 1.1 christos void set_whole_screen __P((void));
385 1.1 christos int readnews __P((void));
386 1.1 christos void set_pager __P((int));
387 1.4 jsm int page_line __P((const char *));
388 1.4 jsm void cornline __P((int, const char *));
389 1.1 christos int dohelp __P((void));
390 1.4 jsm int page_file __P((const char *, boolean));
391 1.1 christos int dosh __P((void));
392 1.1 christos int child __P((int));
393 1.1 christos
394 1.1 christos /* hack.potion.c */
395 1.1 christos int dodrink __P((void));
396 1.1 christos void pluslvl __P((void));
397 1.4 jsm void strange_feeling __P((struct obj *, const char *));
398 1.1 christos void potionhit __P((struct monst *, struct obj *));
399 1.1 christos void potionbreathe __P((struct obj *));
400 1.1 christos int dodip __P((void));
401 1.1 christos void ghost_from_bottle __P((void));
402 1.1 christos
403 1.1 christos /* hack.pri.c */
404 1.1 christos void swallowed __P((void));
405 1.1 christos void panic __P((const char *, ...))
406 1.1 christos __attribute__((__format__(__printf__, 1, 2)));
407 1.1 christos void atl __P((int, int, int));
408 1.1 christos void on_scr __P((int, int));
409 1.1 christos void tmp_at __P((schar, schar));
410 1.1 christos void Tmp_at __P((schar, schar));
411 1.4 jsm void setclipped __P((void)) __attribute__((__noreturn__));
412 1.1 christos void at __P((xchar, xchar, int));
413 1.1 christos void prme __P((void));
414 1.1 christos int doredraw __P((void));
415 1.1 christos void docrt __P((void));
416 1.1 christos void docorner __P((int, int));
417 1.1 christos void curs_on_u __P((void));
418 1.1 christos void pru __P((void));
419 1.1 christos void prl __P((int, int));
420 1.1 christos char news0 __P((xchar, xchar));
421 1.1 christos void newsym __P((int, int));
422 1.1 christos void mnewsym __P((int, int));
423 1.1 christos void nosee __P((int, int));
424 1.1 christos void prl1 __P((int, int));
425 1.1 christos void nose1 __P((int, int));
426 1.1 christos int vism_at __P((int, int));
427 1.1 christos void pobj __P((struct obj *));
428 1.1 christos void unpobj __P((struct obj *));
429 1.1 christos void seeobjs __P((void));
430 1.1 christos void seemons __P((void));
431 1.1 christos void pmon __P((struct monst *));
432 1.1 christos void unpmon __P((struct monst *));
433 1.1 christos void nscr __P((void));
434 1.1 christos void cornbot __P((int));
435 1.1 christos void bot __P((void));
436 1.1 christos void mstatusline __P((struct monst *));
437 1.1 christos void cls __P((void));
438 1.1 christos
439 1.1 christos /* hack.read.c */
440 1.1 christos int doread __P((void));
441 1.1 christos int identify __P((struct obj *));
442 1.1 christos void litroom __P((boolean));
443 1.1 christos int monstersym __P((int));
444 1.1 christos
445 1.1 christos /* hack.rip.c */
446 1.1 christos void outrip __P((void));
447 1.1 christos void center __P((int, char *));
448 1.1 christos
449 1.1 christos /* hack.rumors.c */
450 1.1 christos void init_rumors __P((FILE *));
451 1.1 christos int skipline __P((FILE *));
452 1.1 christos void outline __P((FILE *));
453 1.1 christos void outrumor __P((void));
454 1.1 christos int used __P((int));
455 1.1 christos
456 1.1 christos /* hack.save.c */
457 1.1 christos int dosave __P((void));
458 1.1 christos int dosave0 __P((int));
459 1.1 christos int dorecover __P((int));
460 1.1 christos struct obj *restobjchn __P((int));
461 1.1 christos struct monst *restmonchn __P((int));
462 1.1 christos
463 1.1 christos /* hack.search.c */
464 1.1 christos int findit __P((void));
465 1.1 christos int dosearch __P((void));
466 1.1 christos int doidtrap __P((void));
467 1.1 christos void wakeup __P((struct monst *));
468 1.1 christos void seemimic __P((struct monst *));
469 1.1 christos
470 1.1 christos /* hack.shk.c */
471 1.1 christos void obfree __P((struct obj *, struct obj *));
472 1.1 christos void paybill __P((void));
473 1.1 christos char *shkname __P((struct monst *));
474 1.1 christos void shkdead __P((struct monst *));
475 1.1 christos void replshk __P((struct monst *, struct monst *));
476 1.1 christos int inshop __P((void));
477 1.1 christos int dopay __P((void));
478 1.1 christos struct bill_x;
479 1.1 christos struct obj *bp_to_obj __P((struct bill_x *));
480 1.1 christos void addtobill __P((struct obj *));
481 1.1 christos void splitbill __P((struct obj *, struct obj *));
482 1.1 christos void subfrombill __P((struct obj *));
483 1.1 christos int doinvbill __P((int));
484 1.1 christos int shkcatch __P((struct obj *));
485 1.1 christos int shk_move __P((struct monst *));
486 1.1 christos void shopdig __P((int));
487 1.1 christos int online __P((int, int));
488 1.1 christos int follower __P((struct monst *));
489 1.1 christos
490 1.1 christos /* hack.shknam.c */
491 1.1 christos void findname __P((char *, int));
492 1.1 christos
493 1.1 christos /* hack.steal.c */
494 1.1 christos long somegold __P((void));
495 1.1 christos void stealgold __P((struct monst *));
496 1.1 christos int stealarm __P((void));
497 1.1 christos int steal __P((struct monst *));
498 1.1 christos void mpickobj __P((struct monst *, struct obj *));
499 1.1 christos int stealamulet __P((struct monst *));
500 1.1 christos void relobj __P((struct monst *, int));
501 1.1 christos
502 1.1 christos /* hack.termcap.c */
503 1.1 christos void startup __P((void));
504 1.1 christos void start_screen __P((void));
505 1.1 christos void end_screen __P((void));
506 1.1 christos void curs __P((int, int));
507 1.1 christos void nocmov __P((int, int));
508 1.1 christos void cmov __P((int, int));
509 1.2 lukem int xputc __P((int));
510 1.1 christos void xputs __P((char *));
511 1.1 christos void cl_end __P((void));
512 1.1 christos void clear_screen __P((void));
513 1.1 christos void home __P((void));
514 1.1 christos void standoutbeg __P((void));
515 1.1 christos void standoutend __P((void));
516 1.1 christos void backsp __P((void));
517 1.1 christos void bell __P((void));
518 1.1 christos void delay_output __P((void));
519 1.1 christos void cl_eos __P((void));
520 1.1 christos
521 1.1 christos /* hack.timeout.c */
522 1.1 christos void timeout __P((void));
523 1.1 christos void stoned_dialogue __P((void));
524 1.1 christos
525 1.1 christos /* hack.topl.c */
526 1.1 christos int doredotopl __P((void));
527 1.1 christos void redotoplin __P((void));
528 1.1 christos void remember_topl __P((void));
529 1.4 jsm void addtopl __P((const char *));
530 1.4 jsm void xmore __P((const char *));
531 1.1 christos void more __P((void));
532 1.4 jsm void cmore __P((const char *));
533 1.1 christos void clrlin __P((void));
534 1.1 christos void pline __P((const char *, ...))
535 1.1 christos __attribute__((__format__(__printf__, 1, 2)));
536 1.4 jsm void vpline __P((const char *, va_list))
537 1.4 jsm __attribute__((__format__(__printf__, 1, 0)));
538 1.1 christos void putsym __P((int));
539 1.4 jsm void putstr __P((const char *));
540 1.1 christos
541 1.1 christos /* hack.track.c */
542 1.1 christos void initrack __P((void));
543 1.1 christos void settrack __P((void));
544 1.1 christos coord *gettrack __P((int, int));
545 1.1 christos
546 1.1 christos /* hack.trap.c */
547 1.1 christos struct trap *maketrap __P((int, int, int));
548 1.1 christos void dotrap __P((struct trap *));
549 1.1 christos int mintrap __P((struct monst *));
550 1.4 jsm void selftouch __P((const char *));
551 1.1 christos void float_up __P((void));
552 1.1 christos void float_down __P((void));
553 1.1 christos void vtele __P((void));
554 1.1 christos void tele __P((void));
555 1.1 christos void teleds __P((int, int));
556 1.1 christos int teleok __P((int, int));
557 1.1 christos int dotele __P((void));
558 1.1 christos void placebc __P((int));
559 1.1 christos void unplacebc __P((void));
560 1.1 christos void level_tele __P((void));
561 1.1 christos void drown __P((void));
562 1.1 christos
563 1.1 christos /* hack.tty.c */
564 1.1 christos void gettty __P((void));
565 1.4 jsm void settty __P((const char *));
566 1.1 christos void setctty __P((void));
567 1.1 christos void setftty __P((void));
568 1.1 christos void error __P((const char *, ...))
569 1.1 christos __attribute__((__format__(__printf__, 1, 2),__noreturn__));
570 1.1 christos void getlin __P((char *));
571 1.1 christos void getret __P((void));
572 1.4 jsm void cgetret __P((const char *));
573 1.4 jsm void xwaitforspace __P((const char *));
574 1.1 christos char *parse __P((void));
575 1.1 christos char readchar __P((void));
576 1.4 jsm void end_of_input __P((void)) __attribute__((__noreturn__));
577 1.1 christos
578 1.1 christos /* hack.u_init.c */
579 1.1 christos void u_init __P((void));
580 1.1 christos struct trobj;
581 1.1 christos void ini_inv __P((struct trobj *));
582 1.1 christos void wiz_inv __P((void));
583 1.1 christos void plnamesuffix __P((void));
584 1.1 christos int role_index __P((int));
585 1.1 christos
586 1.1 christos /* hack.unix.c */
587 1.1 christos void setrandom __P((void));
588 1.1 christos struct tm *getlt __P((void));
589 1.1 christos int getyear __P((void));
590 1.1 christos char *getdate __P((void));
591 1.1 christos int phase_of_the_moon __P((void));
592 1.1 christos int night __P((void));
593 1.1 christos int midnight __P((void));
594 1.1 christos void gethdate __P((char *));
595 1.1 christos int uptodate __P((int));
596 1.1 christos int veryold __P((int));
597 1.1 christos void getlock __P((void));
598 1.1 christos void getmailstatus __P((void));
599 1.1 christos void ckmailstatus __P((void));
600 1.1 christos void newmail __P((void));
601 1.1 christos void mdrush __P((struct monst *, boolean));
602 1.1 christos void readmail __P((void));
603 1.1 christos void regularize __P((char *));
604 1.1 christos
605 1.1 christos /* hack.vault.c */
606 1.1 christos void setgd __P((void));
607 1.1 christos int gd_move __P((void));
608 1.1 christos void gddead __P((void));
609 1.1 christos void replgd __P((struct monst *, struct monst *));
610 1.1 christos void invault __P((void));
611 1.1 christos
612 1.1 christos /* hack.version.c */
613 1.1 christos int doversion __P((void));
614 1.1 christos
615 1.1 christos /* hack.wield.c */
616 1.1 christos void setuwep __P((struct obj *));
617 1.1 christos int dowield __P((void));
618 1.1 christos void corrode_weapon __P((void));
619 1.1 christos int chwepon __P((struct obj *, int));
620 1.1 christos
621 1.1 christos /* hack.wizard.c */
622 1.1 christos void amulet __P((void));
623 1.1 christos int wiz_hit __P((struct monst *));
624 1.1 christos void inrange __P((struct monst *));
625 1.1 christos void aggravate __P((void));
626 1.1 christos void clonewiz __P((struct monst *));
627 1.1 christos
628 1.1 christos /* hack.worm.c */
629 1.1 christos #ifndef NOWORM
630 1.1 christos int getwn __P((struct monst *));
631 1.1 christos void initworm __P((struct monst *));
632 1.1 christos void worm_move __P((struct monst *));
633 1.1 christos void worm_nomove __P((struct monst *));
634 1.1 christos void wormdead __P((struct monst *));
635 1.1 christos void wormhit __P((struct monst *));
636 1.1 christos void wormsee __P((unsigned));
637 1.1 christos struct wseg;
638 1.1 christos void pwseg __P((struct wseg *));
639 1.1 christos void cutworm __P((struct monst *, xchar, xchar, uchar));
640 1.1 christos void remseg __P((struct wseg *));
641 1.1 christos #endif
642 1.1 christos
643 1.1 christos /* hack.worn.c */
644 1.1 christos void setworn __P((struct obj *, long));
645 1.1 christos void setnotworn __P((struct obj *));
646 1.1 christos
647 1.1 christos /* hack.zap.c */
648 1.1 christos void bhitm __P((struct monst *, struct obj *));
649 1.1 christos int bhito __P((struct obj *, struct obj *));
650 1.1 christos int dozap __P((void));
651 1.4 jsm const char *exclam __P((int));
652 1.4 jsm void hit __P((const char *, struct monst *, const char *));
653 1.4 jsm void miss __P((const char *, struct monst *));
654 1.1 christos struct monst *bhit __P((int, int, int, int,
655 1.1 christos void (*)(struct monst *, struct obj *),
656 1.1 christos int (*)(struct obj *, struct obj *),
657 1.1 christos struct obj *));
658 1.1 christos struct monst *boomhit __P((int, int));
659 1.1 christos char dirlet __P((int, int));
660 1.1 christos void buzz __P((int, xchar, xchar, int, int));
661 1.1 christos int zhit __P((struct monst *, int));
662 1.1 christos int revive __P((struct obj *));
663 1.1 christos void rloco __P((struct obj *));
664 1.1 christos void fracture_rock __P((struct obj *));
665 1.1 christos void burn_scrolls __P((void));
666 1.1 christos
667 1.1 christos /* rnd.c */
668 1.1 christos int rn1 __P((int, int));
669 1.1 christos int rn2 __P((int));
670 1.1 christos int rnd __P((int));
671 1.1 christos int d __P((int, int));
672 1.1 christos #endif /* _EXTERN_H_ */
673