/* allocate new table */
olds = dt->data->ntab == 0 ? NULL : dt->data->htab;
- if(!(s = (Dtlink_t**)(*dt->memoryf)(dt,olds,n*sizeof(Dtlink_t*),dt->disc)) )
+ if(!(s = (*dt->memoryf)(dt, olds, n * sizeof(Dtlink_t*), dt->disc)) )
return;
olds = s + dt->data->ntab;
dt->data->htab = s;
if(lk >= 0)
r = _DTLNK(obj,lk);
else
- { r = (Dtlink_t*)(*dt->memoryf)
- (dt,NULL,sizeof(Dthold_t),disc);
+ { r = (*dt->memoryf)(dt, NULL, sizeof(Dthold_t), disc);
if(r)
((Dthold_t*)r)->obj = obj;
else
if(lk >= 0)
r = _DTLNK(obj,lk);
else
- { r = (Dtlink_t*)(*dt->memoryf)
- (dt,NULL,sizeof(Dthold_t),disc);
+ { r = (*dt->memoryf)(dt, NULL, sizeof(Dthold_t), disc);
if(r)
((Dthold_t*)r)->obj = obj;
else
}
/* allocate sharable data */
- if(!(data = (Dtdata_t*)(dt->memoryf)(dt,NULL,sizeof(Dtdata_t),disc)) )
+ if(!(data = (dt->memoryf)(dt, NULL, sizeof(Dtdata_t), disc)) )
{ err_open:
free(dt);
return NULL;
{ if(lk >= 0)
root = _DTLNK(obj,lk);
else
- { root = (Dtlink_t*)(*dt->memoryf)
- (dt,NULL,sizeof(Dthold_t),disc);
+ { root = (*dt->memoryf)(dt, NULL, sizeof(Dthold_t), disc);
if(root)
((Dthold_t*)root)->obj = obj;
else if(disc->makef && disc->freef &&