/* * Удалить хранилище. */ static void delete_container_map() { if (!is_init) return; hash_map_delete(_container.map_id); struct id_list *cur = _container.free_ids; struct id_list *next; while (cur != 0 ) { next = cur->next; free(cur); cur = next; } is_init = 0; }
static inline int __container_hash_map_delete(container_t *ct, iterator_t *it) { return hash_map_delete(ct->priv.hmap, &it->pos.hash_pos); }