Lines Matching defs:HT
391 #define DEFHASH(HT, VT) \
392 struct HT { \
396 struct HT * \
397 HT##_create(void) \
399 struct HT *tbl; \
407 HT##_insert(struct HT *tbl, const char *name, struct VT *val) \
413 HT##_replace(struct HT *tbl, const char *name, struct VT *val) \
419 HT##_remove(struct HT *tbl, const char *name) \
425 HT##_lookup(struct HT *tbl, const char *name) \
430 struct HT##_enumcontext { \
436 HT##_enumerate_thunk(const char *name, void *value, void *voidctx) \
438 struct HT##_enumcontext *ctx = voidctx; \
444 HT##_enumerate(struct HT *tbl, \
448 struct HT##_enumcontext ctx; \
452 return ht_enumerate(&tbl->imp, HT##_enumerate_thunk, &ctx); \