- All `ht_*_new0()` are removed - `freefn` field of HT options was renamed to `finiKV` - `finiKV_user` fields was added to HT options - Added `ht_*_new_opt_size` API - `HtSP` and `HtUP` are created with `ValueFree` callback that allows to reduce extra LOC and prevent bugs - `SetP` replaced with `SetS` (based on `HtSP`) - `rz_th_ht_*_new0()` and `rz_th_ht_*_new_opt()` are replaced with `rz_th_ht_*_new(HtXX *)`
16 lines
452 B
C
16 lines
452 B
C
// SPDX-FileCopyrightText: 2016-2018 crowell
|
|
// SPDX-FileCopyrightText: 2016-2018 pancake <pancake@nopcode.org>
|
|
// SPDX-FileCopyrightText: 2016-2018 ret2libc <sirmy15@gmail.com>
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#include <rz_util/ht_uu.h>
|
|
|
|
#include "ht_inc.c"
|
|
|
|
/**
|
|
* \brief Create a new hash table that has ut64 as key and ut64 as value.
|
|
*/
|
|
RZ_API RZ_OWN HtName_(Ht) *Ht_(new)(void) {
|
|
HT_(Options) opt = { 0 };
|
|
return Ht_(new_opt)(&opt);
|
|
}
|