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