File: hash.h

package info (click to toggle)
trn4 4.0-test77-18
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 4,016 kB
  • sloc: ansic: 48,332; sh: 6,795; tcl: 1,696; yacc: 662; perl: 108; makefile: 26
file content (23 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * general-purpose in-core hashing
 */
/* This file is an altered version of a set of hash routines by
 * Geoffrey Collyer.  See hash.c for his copyright.
 */

struct hashdatum {
    char* dat_ptr;
    unsigned dat_len;
};

#define HASH_DEFCMPFUNC (int(*)_((char*,int,HASHDATUM)))NULL

/* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */

HASHTABLE* hashcreate _((unsigned,int(*) _((char*,int,HASHDATUM))));
void hashdestroy _((HASHTABLE*));
void hashstore _((HASHTABLE*,char*,int,HASHDATUM));
void hashdelete _((HASHTABLE*,char*,int));
HASHDATUM hashfetch _((HASHTABLE*,char*,int));
void hashstorelast _((HASHDATUM));
void hashwalk _((HASHTABLE*,int(*) _((int,HASHDATUM*,int)),int));