return memcmp( item, key, sizeof( ipslot ) ) == 0;
}
+static void voidp_releasekey(itemkeyfun *this,void *key) {
+}
+
static int shrink(vector *pv,unsigned long index,void *item,void *data) {
if ( item ) {
if ( item == HV_HOLE ) {
itemkeyfun voidpfun = {
.hashcode = voidp_hashcode,
.itemkey = voidp_itemkey,
- .haskey = voidp_haskey
+ .haskey = voidp_haskey,
+ .releasekey = voidp_releasekey
};
hashvector hv = {
- .table = { 4, 0 },
+ .table = { 1, 4, 0 },
.fill = 0,
.holes = 0,
.type = &voidpfun