1
/* *** This file was borrowed from jam 2.5. The copyright statement from
2
* *** jam.c appears below.
6
* +\ Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
9
* This file is part of jam.
11
* License is hereby granted to use this software and distribute it
12
* freely, as long as this copyright notice is retained and modifications
15
* ALL WARRANTIES ARE HEREBY DISCLAIMED.
19
* Copyright 1993, 1995 Christopher Seiwald.
21
* This file is part of Jam - see jam.c for Copyright information.
25
* hash.h - simple in-memory hashing routines
27
* 11/04/02 (seiwald) - const-ing for string literals
30
typedef struct hashdata HASHDATA;
32
struct hash * hashinit( int datalen, const char *name );
33
int hashitem( struct hash *hp, HASHDATA **data, int enter );
34
void hashdone( struct hash *hp );
36
# define hashenter( hp, data ) !hashitem( hp, data, !0 )
37
# define hashcheck( hp, data ) hashitem( hp, data, 0 )