diff options
author | christos <christos@NetBSD.org> | 2001-02-05 00:27:35 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2001-02-05 00:27:35 +0000 |
commit | d53bd20bd5d0f4e990615bc47d9c57a2b5c8ee4e (patch) | |
tree | 48f6acff3cb982928f9094ba3c8b7c7337fd9216 /boggle/boggle/word.c | |
parent | c88424fc09d64d3fb56632605482552dec68e04e (diff) | |
download | bsdgames-darwin-d53bd20bd5d0f4e990615bc47d9c57a2b5c8ee4e.tar.gz bsdgames-darwin-d53bd20bd5d0f4e990615bc47d9c57a2b5c8ee4e.tar.zst bsdgames-darwin-d53bd20bd5d0f4e990615bc47d9c57a2b5c8ee4e.zip |
fix nested extern
Diffstat (limited to 'boggle/boggle/word.c')
-rw-r--r-- | boggle/boggle/word.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/boggle/boggle/word.c b/boggle/boggle/word.c index b91f3a7b..ec112843 100644 --- a/boggle/boggle/word.c +++ b/boggle/boggle/word.c @@ -1,4 +1,4 @@ -/* $NetBSD: word.c,v 1.5 1999/09/08 21:17:45 jsm Exp $ */ +/* $NetBSD: word.c,v 1.6 2001/02/05 00:27:35 christos Exp $ */ /*- * Copyright (c) 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)word.c 8.1 (Berkeley) 6/11/93"; #else -__RCSID("$NetBSD: word.c,v 1.5 1999/09/08 21:17:45 jsm Exp $"); +__RCSID("$NetBSD: word.c,v 1.6 2001/02/05 00:27:35 christos Exp $"); #endif #endif /* not lint */ @@ -61,6 +61,9 @@ static char *sp; static int first = 1, lastch = 0; +extern struct dictindex dictindex[]; +extern int wordlen; + /* * Return the next word in the compressed dictionary in 'buffer' or * NULL on end-of-file @@ -69,7 +72,6 @@ char * nextword(fp) FILE *fp; { - extern int wordlen; int ch, pcount; char *p; static char buf[MAXWORDLEN + 1]; @@ -193,7 +195,6 @@ loadindex(indexfile) int i, j; char buf[BUFSIZ]; FILE *fp; - extern struct dictindex dictindex[]; if ((fp = fopen(indexfile, "r")) == NULL) { warn("Can't open '%s'", indexfile); |