1 /*
2  * general-purpose in-core hashing
3  */
4 /* This file is an altered version of a set of hash routines by
5  * Geoffrey Collyer.  See hash.c for his copyright.
6  */
7 
8 struct hashdatum {
9     char* dat_ptr;
10     unsigned dat_len;
11 };
12 
13 #define HASH_DEFCMPFUNC (int(*)_((char*,int,HASHDATUM)))NULL
14 
15 /* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */
16 
17 HASHTABLE* hashcreate _((unsigned,int(*) _((char*,int,HASHDATUM))));
18 void hashdestroy _((HASHTABLE*));
19 void hashstore _((HASHTABLE*,char*,int,HASHDATUM));
20 void hashdelete _((HASHTABLE*,char*,int));
21 HASHDATUM hashfetch _((HASHTABLE*,char*,int));
22 void hashstorelast _((HASHDATUM));
23 void hashwalk _((HASHTABLE*,int(*) _((int,HASHDATUM*,int)),int));
24