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/parse.c | |
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/parse.c')
-rw-r--r-- | battlestar/parse.c | 10 |
1 files changed, 8 insertions, 2 deletions
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() { |