Bring in OpenBSD's boggle(6).
[dragonfly.git] / games / boggle / boggle / extern.h
blobe15222b4daec7d562348b0eeebba7fe5166272d3
1 /* $OpenBSD: extern.h,v 1.9 2015/12/25 20:59:09 mestre Exp $ */
2 /* $NetBSD: extern.h,v 1.3 1995/04/24 12:22:37 cgd Exp $ */
4 /*-
5 * Copyright (c) 1993
6 * The Regents of the University of California. All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. Neither the name of the University nor the names of its contributors
17 * may be used to endorse or promote products derived from this software
18 * without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
32 * @(#)extern.h 8.1 (Berkeley) 6/11/93
35 #include <setjmp.h>
37 extern int tlimit;
38 extern time_t start_t;
39 extern jmp_buf env;
40 extern int LIST_LINE, LIST_COL;
41 extern int TIMER_LINE, TIMER_COL;
43 extern char *board;
44 extern int grid;
45 extern int lastline;
46 extern unsigned int ncubes;
47 extern int ngames;
48 extern int nlines;
49 extern int usedbits;
50 extern int wordlen;
51 extern int wordpath[];
52 extern char **mword, **pword;
53 extern int nmwords, npwords;
54 extern int tnmwords, tnpwords;
56 void addword(char *);
57 void badword(void);
58 char *batchword(FILE *);
59 void checkdict(void);
60 int checkword(char *, int, int *);
61 void cleanup(void);
62 void delay(int);
63 long dictseek(FILE *, long, int);
64 void findword(void);
65 void flushin(FILE *);
66 char *get_line(char *);
67 void getword(char *);
68 int help(void);
69 int inputch(void);
70 int loaddict(FILE *);
71 int loadindex(const char *);
72 void newgame(char *);
73 char *nextword(FILE *);
74 FILE *opendict(const char *);
75 void playgame(void);
76 void prompt(const char *);
77 void prtable(char *[], int, int, int,
78 void (*)(char *[], int), int (*)(char *[], int));
79 void putstr(char *);
80 void redraw(void);
81 void results(void);
82 int setup(void);
83 void showboard(char *);
84 void showstr(const char *, int);
85 void showword(int);
86 void starttime(void);
87 void startwords(void);
88 void stoptime(void);
89 int timerch(void);
90 __dead2 void usage(void);
91 int validword(char *);