regexp engine now undestands some character classes (like :space:) and non-greedy ops
[k8jam.git] / src / hash.h
blob957dca996dd9c05ab35487cd455efb600586cfd8
1 /*
2 * Copyright 1993, 1995 Christopher Seiwald.
4 * This file is part of Jam - see jam.c for Copyright information.
5 */
6 /*
7 * hash.h - simple in-memory hashing routines
9 * 11/04/02 (seiwald) - const-ing for string literals
11 #ifndef JAMH_HASH_H
12 #define JAMH_HASH_H
15 typedef struct hashdata HASHDATA;
17 extern struct hash *hashinit (int datalen, const char *name);
18 extern int hashitem (struct hash *hp, HASHDATA **data, int enter);
19 extern void hashdone (struct hash *hp);
21 #define hashenter(hp, data) (!hashitem(hp, data, !0))
22 #define hashcheck(hp, data) (hashitem(hp, data, 0))
25 #endif