Commit | Line | Data |
---|---|---|
d9416b81 GM |
1 | #define numberof(x) (sizeof x/sizeof x[0]) |
2 | #define highestof(x) (numberof(x)-1) | |
3 | ||
4 | #define firstentry(x) (table[dohash(0, (x))%highestof(table)]) | |
5 | ||
6 | extern struct Hits { | |
7 | struct hits hits; | |
8 | char *name[4]; | |
9 | }; | |
10 | ||
11 | struct thing { | |
12 | struct thing *next; | |
13 | struct Hits *hits; | |
14 | unsigned char value; | |
15 | char name[100]; | |
16 | }; | |
17 | ||
18 | extern struct Hits Hits[256]; /* one for each of 0x00-0xff */ | |
19 | extern struct thing *table[100]; | |
20 | ||
21 | extern unsigned int dohash(); |