#include <config.h>
#include "mdvi.h"
Go to the source code of this file.
|
static Ulong | hash_string (DviHashKey key) |
|
static int | hash_compare (DviHashKey k1, DviHashKey k2) |
|
void | mdvi_hash_init (DviHashTable *hash) |
|
void | mdvi_hash_create (DviHashTable *hash, int size) |
|
static DviHashBucket * | hash_find (DviHashTable *hash, DviHashKey key) |
|
int | mdvi_hash_add (DviHashTable *hash, DviHashKey key, void *data, int rep) |
|
void * | mdvi_hash_lookup (DviHashTable *hash, DviHashKey key) |
|
static DviHashBucket * | hash_remove (DviHashTable *hash, DviHashKey key) |
|
void * | mdvi_hash_remove (DviHashTable *hash, DviHashKey key) |
|
void * | mdvi_hash_remove_ptr (DviHashTable *hash, DviHashKey key) |
|
int | mdvi_hash_destroy_key (DviHashTable *hash, DviHashKey key) |
|
void | mdvi_hash_reset (DviHashTable *hash, int reuse) |
|
Definition at line 48 of file hash.c.
50 return strcmp((
char *)k1, (
char *)k2);
Definition at line 77 of file hash.c.
84 for(buck = hash->
buckets[hval]; buck; buck = buck->
next)
Definition at line 130 of file hash.c.
138 for(last = NULL, buck = hash->
buckets[hval]; buck; buck = buck->
next) {
Definition at line 32 of file hash.c.
37 for(h = 0, p = (
Uchar *)key; *p; p++) {
39 if((g = h & 0xf0000000L) != 0) {
Definition at line 91 of file hash.c.
99 if(buck->
data == data)
Definition at line 63 of file hash.c.
69 for(i = 0; i <
size; i++)
Definition at line 123 of file hash.c.
127 return buck ? buck->
data : NULL;
Definition at line 165 of file hash.c.
174 for(last = NULL, buck = hash->
buckets[hval]; buck; buck = buck->
next) {
Definition at line 204 of file hash.c.
210 for(i = 0; i < hash->
nbucks; i++) {
211 for(; (buck = hash->
buckets[i]); ) {