2 * Copyright 1993, 1995 Christopher Seiwald.
4 * This file is part of Jam - see jam.c for Copyright information.
8 * hash.h - simple in-memory hashing routines
10 * 11/04/02 (seiwald) - const-ing for string literals
13 typedef struct hashdata HASHDATA
;
15 struct hash
*hashinit (int datalen
, const char *name
);
16 int hashitem (struct hash
*hp
, HASHDATA
**data
, int enter
);
17 void hashdone (struct hash
*hp
);
19 # define hashenter( hp, data ) !hashitem( hp, data, !0 )
20 # define hashcheck( hp, data ) hashitem( hp, data, 0 )