Postfix3.3.1
|
#include <sys_defs.h>
#include <string.h>
#include "mymalloc.h"
#include "msg.h"
#include "htable.h"
マクロ定義 | |
#define | htable_link(table, element) |
#define | STREQ(x, y) (x == y || (x[0] == y[0] && strcmp(x,y) == 0)) |
#define | STREQ(x, y) (x == y || (x[0] == y[0] && strcmp(x,y) == 0)) |
#define | STREQ(x, y) (x == y || (x[0] == y[0] && strcmp(x,y) == 0)) |
関数 | |
HTABLE * | htable_create (ssize_t size) |
HTABLE_INFO * | htable_enter (HTABLE *table, const char *key, void *value) |
void * | htable_find (HTABLE *table, const char *key) |
HTABLE_INFO * | htable_locate (HTABLE *table, const char *key) |
void | htable_delete (HTABLE *table, const char *key, void(*free_fn)(void *)) |
void | htable_free (HTABLE *table, void(*free_fn)(void *)) |
void | htable_walk (HTABLE *table, void(*action)(HTABLE_INFO *, void *), void *ptr) |
HTABLE_INFO ** | htable_list (HTABLE *table) |
HTABLE_INFO * | htable_sequence (HTABLE *table, int how) |
#define htable_link | ( | table, | |
element | |||
) |
#define STREQ | ( | x, | |
y | |||
) | (x == y || (x[0] == y[0] && strcmp(x,y) == 0)) |
#define STREQ | ( | x, | |
y | |||
) | (x == y || (x[0] == y[0] && strcmp(x,y) == 0)) |
#define STREQ | ( | x, | |
y | |||
) | (x == y || (x[0] == y[0] && strcmp(x,y) == 0)) |
void htable_delete | ( | HTABLE * | table, |
const char * | key, | ||
void(*)(void *) | free_fn | ||
) |
HTABLE_INFO* htable_enter | ( | HTABLE * | table, |
const char * | key, | ||
void * | value | ||
) |
HTABLE_INFO** htable_list | ( | HTABLE * | table | ) |
HTABLE_INFO* htable_locate | ( | HTABLE * | table, |
const char * | key | ||
) |
HTABLE_INFO* htable_sequence | ( | HTABLE * | table, |
int | how | ||
) |
void htable_walk | ( | HTABLE * | table, |
void(*)(HTABLE_INFO *, void *) | action, | ||
void * | ptr | ||
) |