Home | History | Annotate | Line # | Download | only in adventure
extern.h revision 1.6
      1  1.6   hubertf /*	$NetBSD: extern.h,v 1.6 1998/08/29 22:40:07 hubertf 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 
     32  1.5   hubertf #include <string.h>
     33  1.5   hubertf 
     34  1.1  christos /* crc.c */
     35  1.1  christos void crc_start __P((void));
     36  1.1  christos unsigned long crc __P((char *, int));
     37  1.1  christos 
     38  1.1  christos /* done.c */
     39  1.1  christos int score __P((void));
     40  1.1  christos void done __P((int));
     41  1.1  christos int die __P((int));
     42  1.1  christos 
     43  1.1  christos /* init.c */
     44  1.4   hubertf void init __P((void));
     45  1.2     lukem char   *decr __P((int, int, int, int, int));
     46  1.1  christos void linkdata __P((void));
     47  1.1  christos void trapdel __P((int));
     48  1.1  christos void startup __P((void));
     49  1.1  christos 
     50  1.1  christos /* io.c */
     51  1.1  christos void getin __P((char **, char **));
     52  1.1  christos int yes __P((int, int, int));
     53  1.1  christos int yesm __P((int, int, int));
     54  1.1  christos int next __P((void));
     55  1.1  christos void rdata __P((void));
     56  1.1  christos int rnum __P((void));
     57  1.1  christos void rdesc __P((int));
     58  1.1  christos void rtrav __P((void));
     59  1.6   hubertf #ifdef DEBUG
     60  1.6   hubertf void twrite __P((int));
     61  1.6   hubertf #endif
     62  1.1  christos void rvoc __P((void));
     63  1.1  christos void rlocs __P((void));
     64  1.1  christos void rdflt __P((void));
     65  1.1  christos void rliq __P((void));
     66  1.1  christos void rhints __P((void));
     67  1.1  christos void rspeak __P((int));
     68  1.1  christos void mspeak __P((int));
     69  1.1  christos struct text;
     70  1.1  christos void speak __P((struct text *));
     71  1.1  christos void pspeak __P((int, int));
     72  1.1  christos 
     73  1.1  christos /* main.c */
     74  1.1  christos int main __P((int, char **));
     75  1.1  christos 
     76  1.1  christos /* save.c */
     77  1.1  christos int save __P((char *));
     78  1.1  christos int restore __P((char *));
     79  1.1  christos 
     80  1.1  christos /* subr.c */
     81  1.1  christos int toting __P((int));
     82  1.1  christos int here __P((int));
     83  1.2     lukem int at  __P((int));
     84  1.1  christos int liq2 __P((int));
     85  1.4   hubertf int liq __P((void));
     86  1.1  christos int liqloc __P((int));
     87  1.1  christos int bitset __P((int, int));
     88  1.1  christos int forced __P((int));
     89  1.4   hubertf int dark __P((void));
     90  1.1  christos int pct __P((int));
     91  1.1  christos int fdwarf __P((void));
     92  1.1  christos int march __P((void));
     93  1.1  christos int mback __P((void));
     94  1.1  christos int specials __P((void));
     95  1.1  christos int trbridge __P((void));
     96  1.1  christos int badmove __P((void));
     97  1.1  christos int bug __P((int)) __attribute__((__noreturn__));
     98  1.1  christos int checkhints __P((void));
     99  1.1  christos int trsay __P((void));
    100  1.1  christos int trtake __P((void));
    101  1.1  christos int dropper __P((void));
    102  1.1  christos int trdrop __P((void));
    103  1.1  christos int tropen __P((void));
    104  1.1  christos int trkill __P((void));
    105  1.1  christos int trtoss __P((void));
    106  1.1  christos int trfeed __P((void));
    107  1.1  christos int trfill __P((void));
    108  1.1  christos int closing __P((void));
    109  1.1  christos int caveclose __P((void));
    110  1.1  christos 
    111  1.1  christos /* vocab.c */
    112  1.1  christos void dstroy __P((int));
    113  1.1  christos void juggle __P((int));
    114  1.1  christos void move __P((int, int));
    115  1.1  christos int put __P((int, int, int));
    116  1.1  christos void carry __P((int, int));
    117  1.1  christos void drop __P((int, int));
    118  1.1  christos int vocab __P((char *, int, int));
    119  1.5   hubertf 
    120  1.5   hubertf /* These three used to be functions in vocab.c */
    121  1.5   hubertf #define copystr(src, dest)	strcpy((dest), (src))
    122  1.5   hubertf #define weq(str1, str2)		(!strncmp((str1), (str2), 5))
    123  1.5   hubertf #define length(str)		(strlen((str)) + 1)
    124  1.5   hubertf 
    125  1.1  christos void prht __P((void));
    126  1.1  christos 
    127  1.1  christos /* wizard.c */
    128  1.1  christos void datime __P((int *, int *));
    129  1.1  christos void poof __P((void));
    130  1.4   hubertf int Start __P((void));
    131  1.1  christos int wizard __P((void));
    132  1.4   hubertf void ciao __P((void));
    133  1.1  christos int ran __P((int));
    134