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