summaryrefslogtreecommitdiffstats
path: root/battlestar
diff options
context:
space:
mode:
Diffstat (limited to 'battlestar')
-rw-r--r--battlestar/extern.h6
-rw-r--r--battlestar/globals.c6
-rw-r--r--battlestar/parse.c10
3 files changed, 11 insertions, 11 deletions
diff --git a/battlestar/extern.h b/battlestar/extern.h
index 811ef051..e03cdd39 100644
--- a/battlestar/extern.h
+++ b/battlestar/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.24 2000/09/24 09:46:28 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.25 2000/09/24 14:11:09 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -302,10 +302,6 @@ struct wlist {
int value, article;
struct wlist *next;
};
-#define HASHSIZE 256
-#define HASHMUL 81
-#define HASHMASK (HASHSIZE - 1)
-extern struct wlist *hashtab[HASHSIZE];
extern struct wlist wlist[];
struct objs {
diff --git a/battlestar/globals.c b/battlestar/globals.c
index fc5ee820..3938d5e3 100644
--- a/battlestar/globals.c
+++ b/battlestar/globals.c
@@ -1,4 +1,4 @@
-/* $NetBSD: globals.c,v 1.15 2000/09/24 09:47:22 jsm Exp $ */
+/* $NetBSD: globals.c,v 1.16 2000/09/24 14:11:09 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)globals.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: globals.c,v 1.15 2000/09/24 09:47:22 jsm Exp $");
+__RCSID("$NetBSD: globals.c,v 1.16 2000/09/24 14:11:09 jsm Exp $");
#endif
#endif /* not lint */
@@ -270,5 +270,3 @@ char injuries[NUMOFINJURIES];
int verbose = 0;
const char *username;
-
-struct wlist *hashtab[HASHSIZE];
diff --git a/battlestar/parse.c b/battlestar/parse.c
index 75c54e23..ab19dbb7 100644
--- a/battlestar/parse.c
+++ b/battlestar/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.10 2000/09/24 09:46:28 jsm Exp $ */
+/* $NetBSD: parse.c,v 1.11 2000/09/24 14:11:09 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,16 +38,22 @@
#if 0
static char sccsid[] = "@(#)parse.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: parse.c,v 1.10 2000/09/24 09:46:28 jsm Exp $");
+__RCSID("$NetBSD: parse.c,v 1.11 2000/09/24 14:11:09 jsm Exp $");
#endif
#endif /* not lint */
#include "extern.h"
+#define HASHSIZE 256
+#define HASHMUL 81
+#define HASHMASK (HASHSIZE - 1)
+
static int hash __P((const char *));
static void install __P((struct wlist *));
static struct wlist *lookup __P((const char *));
+static struct wlist *hashtab[HASHSIZE];
+
void
wordinit()
{