]> andersk Git - splint.git/blame - test/tests2.4/hash.h
noexpand always false.
[splint.git] / test / tests2.4 / hash.h
CommitLineData
80ee600a 1#ifndef _HASH_H
2#define _HASH_H 1
3
4typedef enum {CHAR, INT} keytype;
5
6typedef struct {
7 void *key;
8 void *val;
9} bucket;
10
11typedef struct {
12 int size;
13 int numkeys;
14 unsigned (*hashfunc)(void *key, int M);
15 int (*compfunc)(void *c1, void *c2);
16 void * (*dupefunc)(void *key);
17 bucket **table;
18} hashtable;
19
20void hashcreate(hashtable *table, keytype typ, int size);
21void hashinsert(hashtable *table, void *key, void *val);
22void * hashfind(hashtable *table, void *key);
23void hashforeach(hashtable *table, void (*func)(void *, void *));
24void hashempty(hashtable *table);
25void hashdelete(hashtable *table, void *key);
26
27#endif
This page took 1.667293 seconds and 5 git commands to generate.