コード例 #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);
}