From 409964f65b6f27996ef748f75c5bbb01289ccee7 Mon Sep 17 00:00:00 2001 From: jsm Date: Sun, 24 Sep 2000 14:11:09 +0000 Subject: Make hash table static in parse.c. --- battlestar/parse.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'battlestar/parse.c') 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() { -- cgit v1.2.3