remove debug code, TODO list for hash map.
This commit is contained in:
@@ -30,23 +30,25 @@ typedef struct {
|
||||
h_entry_t *entries[1024];
|
||||
} hash_1024_t;
|
||||
|
||||
#define ENTRY_ALLOC_SIZE 20
|
||||
#define POOL_ALLOC_SIZE 1024
|
||||
|
||||
/* hash map functions */
|
||||
// TODO: hash function parameter
|
||||
hash_t *h_create(int size);
|
||||
void h_init(hash_t *);
|
||||
void h_destroy(hash_t *);
|
||||
void h_free_all(hash_t *);
|
||||
|
||||
/* static free_nodes */
|
||||
void set_pool_free_static(h_entry_t *p);
|
||||
/* TODO: static free_nodes */
|
||||
// void set_pool_free_static(h_entry_t *p);
|
||||
|
||||
/* hash entries functions */
|
||||
h_entry_t *h_entry_add(hash_t *, const unsigned char *, const int, int *);
|
||||
h_entry_t *h_entry_find(hash_t *, const unsigned char *, const int);
|
||||
h_entry_t *h_entry_add(hash_t *, const unsigned char *, const int, int *);
|
||||
void h_entry_free(h_entry_t *);
|
||||
// TODO: delete entry
|
||||
|
||||
|
||||
/* hash function */
|
||||
/* hash functions */
|
||||
unsigned long hash_djb2(const unsigned char *str, const int len);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user