Like `mfree' but don't call a mfree_hook if there is one. */
void
-__mmalloc_free (mdp, ptr)
- struct mdesc *mdp;
- PTR ptr;
+__mmalloc_free (struct mdesc *mdp, void *ptr)
{
int type;
size_t block;//, blocks; unused variable?
mdp -> heapstats.chunks_free -= BLOCKSIZE >> type;
mdp -> heapstats.bytes_free -= BLOCKSIZE;
- mfree ((PTR) mdp, (PTR) ADDRESS(block));
+ mfree ((void*) mdp, (void*) ADDRESS(block));
}
else if (mdp -> heapinfo[block].busy.info.frag.nfree != 0)
{
/* Return memory to the heap. */
void
-mfree (md, ptr)
- PTR md;
- PTR ptr;
+mfree (void *md, void *ptr)
{
struct mdesc *mdp;
register struct alignlist *l;
as inside a system library). */
void
-free (PTR ptr)
+free (void* ptr)
{
- mfree ((PTR) NULL, ptr);
+ mfree ((void*) NULL, ptr);
}