diff options
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() { |
