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