added check for GCC 4.2+ and "native" CPU type for it
[k8jam.git] / hash.h
blob303ed213bb539fcdd6ec5ddee0695254ead8c3d2
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 )