diff options
author | jsm <jsm@NetBSD.org> | 2000-09-24 14:11:09 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 2000-09-24 14:11:09 +0000 |
commit | 409964f65b6f27996ef748f75c5bbb01289ccee7 (patch) | |
tree | b35c0d9889407595eb5cde74fba924840010589f /battlestar | |
parent | 7a2bc06c6dfa7fa4b056af30eb3e2f1ad8e485a2 (diff) | |
download | bsdgames-darwin-409964f65b6f27996ef748f75c5bbb01289ccee7.tar.gz bsdgames-darwin-409964f65b6f27996ef748f75c5bbb01289ccee7.tar.zst bsdgames-darwin-409964f65b6f27996ef748f75c5bbb01289ccee7.zip |
Make hash table static in parse.c.
Diffstat (limited to 'battlestar')
-rw-r--r-- | battlestar/extern.h | 6 | ||||
-rw-r--r-- | battlestar/globals.c | 6 | ||||
-rw-r--r-- | battlestar/parse.c | 10 |
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() { |