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