53 static int dict_ht_delete(
DICT *dict,
const char *name)
76 static const char *dict_ht_lookup(
DICT *dict,
const char *name)
94 static int dict_ht_update(
DICT *dict,
const char *name,
const char *value)
114 ht->
value = saved_value;
120 static int dict_ht_sequence(
DICT *dict,
int how,
const char **name,
143 static void dict_ht_close(
DICT *dict)
170 return (&dict_ht->
dict);
void htable_free(HTABLE *table, void(*free_fn)(void *))
HTABLE_INFO * htable_locate(HTABLE *table, const char *key)
char * mystrdup(const char *str)
void(* close)(struct DICT *)
#define DICT_SEQ_FUN_FIRST
int(* delete)(struct DICT *, const char *)
#define DICT_SEQ_FUN_NEXT
#define DICT_FLAG_FOLD_FIX
VSTRING * vstring_strcpy(VSTRING *vp, const char *src)
HTABLE * htable_create(ssize_t size)
int(* update)(struct DICT *, const char *, const char *)
#define DICT_STAT_SUCCESS
#define DICT_OWNER_TRUSTED
HTABLE_INFO * htable_sequence(HTABLE *table, int how)
VSTRING * vstring_alloc(ssize_t len)
void * htable_find(HTABLE *table, const char *key)
DICT * dict_ht_open(const char *name, int unused_open_flags, int dict_flags)
char * lowercase(char *string)
const char *(* lookup)(struct DICT *, const char *)
#define DICT_ERR_VAL_RETURN(dict, err, val)
VSTRING * vstring_free(VSTRING *vp)
int(* sequence)(struct DICT *, int, const char **, const char **)
DICT * dict_alloc(const char *, const char *, ssize_t)
void htable_delete(HTABLE *table, const char *key, void(*free_fn)(void *))
HTABLE_INFO * htable_enter(HTABLE *table, const char *key, void *value)