Line | |
---|
1 | /*
|
---|
2 | * hashtable
|
---|
3 | */
|
---|
4 |
|
---|
5 | typedef struct hashtable T_HashTable;
|
---|
6 | typedef void *T_HashTableEl;
|
---|
7 | typedef unsigned int (*T_HashFunc)(void *);
|
---|
8 | typedef int (*T_ComparFunc)(void *, void *);
|
---|
9 |
|
---|
10 |
|
---|
11 | int make_ht(T_HashFunc f1, T_HashFunc f2, T_ComparFunc c, int size, T_HashTable **H);
|
---|
12 | int hash_add(T_HashTable *H, T_HashTableEl *E, int *hint);
|
---|
13 | int hash_remove(T_HashTable *H, T_HashTableEl *E, int hint);
|
---|
14 | int hash_lookup(T_HashTable *H, T_HashTableEl *E, T_HashTableEl **E2,
|
---|
15 | int *hint);
|
---|
16 | int free_ht(T_HashTable *H, T_HashFunc entry_free);
|
---|
17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.