return -1;
if(dt->data->ntab > 0)
- (*dt->memoryf)(dt,(void*)dt->data->htab,0,disc);
- (*dt->memoryf)(dt,(void*)dt->data,0,disc);
+ (*dt->memoryf)(dt, dt->data->htab, 0, disc);
+ (*dt->memoryf)(dt, dt->data, 0, disc);
}
if(dt->type == DT_MALLOC)
free(dt);
else if(ev == 0 && dt->type == DT_MEMORYF)
- (*dt->memoryf)(dt, (void*)dt, 0, disc);
+ (*dt->memoryf)(dt, dt, 0, disc);
if(disc->eventf)
(void)(*disc->eventf)(dt, DT_ENDCLOSE, NULL, disc);
if(disc->freef)
(*disc->freef)(dt,_DTOBJ(t,lk),disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)t,0,disc);
+ (*dt->memoryf)(dt, t, 0, disc);
t = r;
}
}
if(disc->freef && (type&DT_INSERT))
(*disc->freef)(dt,obj,disc);
if(disc->link < 0)
- (*disc->memoryf)(dt,(void*)r,0,disc);
+ (*disc->memoryf)(dt, r, 0, disc);
return NULL;
}
s = dt->data->htab + HINDEX(dt->data->ntab,hsh);
{ if(disc->freef)
(*disc->freef)(dt,obj,disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)r,0,disc);
+ (*dt->memoryf)(dt, r, 0, disc);
return t ? _DTOBJ(t,lk) : NULL;
}
}
if(disc->freef && (type&DT_DELETE))
(*disc->freef)(dt,obj,disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)t,0,disc);
+ (*dt->memoryf)(dt, t, 0, disc);
return obj;
}
}
if(disc->freef)
(*disc->freef)(dt,_DTOBJ(r,lk),disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)r,0,disc);
+ (*dt->memoryf)(dt, r, 0, disc);
}
}
dt->data->head = dt->data->here = NULL;
if(disc->freef && (type&DT_DELETE))
(*disc->freef)(dt,obj,disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)r,0,disc);
+ (*dt->memoryf)(dt, r, 0, disc);
return obj;
}
else if(type&DT_NEXT)
dt->data->head = NULL;
else if(dt->data->type&(DT_SET|DT_BAG) )
{ if(dt->data->ntab > 0)
- (*dt->memoryf)(dt,(void*)dt->data->htab,0,disc);
+ (*dt->memoryf)(dt, dt->data->htab, 0, disc);
dt->data->ntab = 0;
dt->data->htab = NULL;
}
if(disc->freef)
(*disc->freef)(dt,_DTOBJ(root,lk),disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)root,0,disc);
+ (*dt->memoryf)(dt, root, 0, disc);
} while((root = t) );
}
if(disc->freef && (type&DT_DELETE))
(*disc->freef)(dt,obj,disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)root,0,disc);
+ (*dt->memoryf)(dt, root, 0, disc);
if((dt->data->size -= 1) < 0)
dt->data->size = -1;
goto no_root;
{ if(disc->freef)
(*disc->freef)(dt,obj,disc);
if(disc->link < 0)
- (*dt->memoryf)(dt,(void*)me,0,disc);
+ (*dt->memoryf)(dt, me, 0, disc);
}
else
{ me->left = NULL;