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