-/* $NetBSD: parse.c,v 1.9 2000/09/22 08:19:21 jsm Exp $ */
+/* $NetBSD: parse.c,v 1.12 2001/06/19 13:42:09 wiz Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)parse.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: parse.c,v 1.9 2000/09/22 08:19:21 jsm Exp $");
+__RCSID("$NetBSD: parse.c,v 1.12 2001/06/19 13:42:09 wiz 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()
{
install(w);
}
-int
+static int
hash(s)
const char *s;
{
return hashval;
}
-struct wlist *
+static struct wlist *
lookup(s)
const char *s;
{
return NULL;
}
-void
+static void
install(wp)
struct wlist *wp;
{
/* If there is a sequence (NOUN | OBJECT) AND EVERYTHING
* then move all the EVERYTHINGs to the beginning, since that's where
* they're expected. We can't get rid of the NOUNs and OBJECTs in
- * case they aren't in EVERYTHING (i.e. not here or nonexistant).
+ * case they aren't in EVERYTHING (i.e. not here or nonexistent).
*/
flag = 1;
while (flag) {