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