1 /*-
2  * Copyright (c) 1988, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)dohits.h	8.1 (Berkeley) 06/06/93
8  */
9 
10 #define	numberof(x)	(sizeof x/sizeof x[0])
11 #define	highestof(x)	(numberof(x)-1)
12 
13 #define	firstentry(x)	(table[dohash(0, (x))%highestof(table)])
14 
15 struct Hits {
16     struct hits hits;
17     char *name[4];
18 };
19 
20 struct thing {
21     struct thing *next;
22     struct Hits *hits;
23     unsigned char value;
24     char name[100];
25 };
26 
27 extern struct Hits Hits[256];		/* one for each of 0x00-0xff */
28 extern struct thing *table[100];
29 
30 extern unsigned int dohash();
31