void Hash_copy(struct Hash *dst, struct Hash *src) { Hash_delete(dst); Hash_init(dst, src->elemsSize); dst->elemsSize = src->elemsSize; dst->numElems = src->numElems; memcpy(dst->elems, src->elems, src->numElems * sizeof(struct HashElem)); }
extern void Config_section_delete(Config_section_T section, const char *varname) { Hash_delete(section->vars, varname); }
Obj* Hash_delete_str(Hash *self, const char *key, size_t key_len) { ZombieCharBuf *key_buf = ZCB_WRAP_STR(key, key_len); return Hash_delete(self, (Obj*)key_buf); }