예제 #1
0
/* 删除字典
 *
 * Clear & Release the hash table
 *
 * Args:
 *  d 被删除的字典
 */
void dictRelease(dict *d)
{
    // 删除 0 号和 1 号哈希表
    _dictClear(d,&d->ht[0]);
    _dictClear(d,&d->ht[1]);

    // 释放字典结构
    zfree(d);
}
예제 #2
0
파일: dict.c 프로젝트: AMCScarface/misc
void dictEmpty(dict *d) {
    _dictClear(d,&d->ht[0]);
    _dictClear(d,&d->ht[1]);
    d->rehashidx = -1;
    d->iterators = 0;
}
예제 #3
0
파일: dict.c 프로젝트: AMCScarface/misc
/* Clear & Release the hash table */
void dictRelease(dict *d)
{
    _dictClear(d,&d->ht[0]);
    _dictClear(d,&d->ht[1]);
    zfree(d);
}
예제 #4
0
파일: dict.c 프로젝트: snoplus/orca
/* Clear & Release the hash table */
static void dictRelease(dict *ht) {
    _dictClear(ht);
    free(ht);
}
예제 #5
0
파일: dict.c 프로젝트: ooeyusea/hyper_net
/* Clear & Release the hash table */
static void dictRelease(dict *ht) {
    _dictClear(ht);
	TFREE(ht);
}