added Slackware build script
[k8jam.git] / hash.h
blob00cce5ab9e7779cd38ae833cd98ef63255b8142b
1 /*
2 * Copyright 1993, 1995 Christopher Seiwald.
4 * This file is part of Jam - see jam.c for Copyright information.
5 */
7 /*
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 )