8#define Hash_BytesForBuckets(b) (sizeof(bucket_t*)*(b))
10#define STRCMP(s1,s2) (((*s1)!=(*s2)) || strcmp(s1,s2))
26unsigned int Hash_Key(
const char *
name,
unsigned int modulus);
void dNearCallback * callback
Definition: com_phys_ode.c:655
static EGLSurface EGLSurface EGLContext ctx
Definition: gl_videgl.c:47
float old
Definition: gl_vidlinuxglx.c:1365
GLuint GLcharARB * name
Definition: glquake.h:155
void * Hash_GetNext(hashtable_t *table, const char *name, void *old)
Definition: hash.c:183
void * Hash_GetNextKey(hashtable_t *table, unsigned int key, void *old)
Definition: hash.c:156
void * Hash_GetIdx(hashtable_t *table, unsigned int idx)
Definition: hash.c:71
void * Hash_GetKey(hashtable_t *table, unsigned int key)
Definition: hash.c:139
void Hash_RemoveBucket(hashtable_t *table, const char *name, bucket_t *data)
Definition: hash.c:334
void Hash_RemoveData(hashtable_t *table, const char *name, void *data)
Definition: hash.c:319
void Hash_RemoveDataInsensitive(hashtable_t *table, const char *name, void *data)
Definition: hash.c:304
void Hash_Remove(hashtable_t *table, const char *name)
Definition: hash.c:277
void Hash_RemoveDataKey(hashtable_t *table, unsigned int key, void *data)
Definition: hash.c:351
void * Hash_GetInsensitive(hashtable_t *table, const char *name)
Definition: hash.c:107
struct hashtable_s hashtable_t
void * Hash_AddKey(hashtable_t *table, unsigned int key, void *data, bucket_t *buck)
Definition: hash.c:265
void * Hash_Enumerate(hashtable_t *table, void(*callback)(void *ctx, void *data), void *ctx)
Definition: hash.c:27
void * Hash_AddInsensitive(hashtable_t *table, const char *name, void *data, bucket_t *buck)
Definition: hash.c:254
unsigned int Hash_Key(const char *name, unsigned int modulus)
Definition: hash.c:49
void * Hash_GetNextInsensitive(hashtable_t *table, const char *name, void *old)
Definition: hash.c:211
void * Hash_Add(hashtable_t *table, const char *name, void *data, bucket_t *buck)
Definition: hash.c:243
void * Hash_GetInsensitiveBucket(hashtable_t *table, const char *name)
Definition: hash.c:123
void Hash_RemoveKey(hashtable_t *table, unsigned int key)
Definition: hash.c:366
void * Hash_Get(hashtable_t *table, const char *name)
Definition: hash.c:91
void Hash_InitTable(hashtable_t *table, unsigned int numbucks, void *mem)
Definition: hash.c:21
char ** data
Definition: p_script.c:63
int idx
Definition: pr_lua.c:221
unsigned int value
Definition: hash.h:15
struct bucket_s * next
Definition: hash.h:17
const char * string
Definition: hash.h:14
void * data
Definition: hash.h:12
unsigned int numbuckets
Definition: hash.h:20
bucket_t ** bucket
Definition: hash.h:21