-/* File: z-virt.c */
+/* File: z-virt.c */
/*
* Copyright (c) 1997 Ben Harrison
/* Purpose: Memory management routines -BEN- */
#include "z-virt.h"
-
#include "z-util.h"
-
/*
* Allow debugging messages to track memory usage.
*/
/* Decrease memory count */
virt_kill += len;
- /* Message */
if (len > virt_size)
{
char buf[80];
sprintf(buf, "Kill (%ld): %ld - %ld = %ld.",
- len, virt_make, virt_kill, virt_make - virt_kill);
+ len, virt_make, virt_kill, virt_make - virt_kill);
plog(buf);
}
/* Use "free" */
free ((char*)(p));
- /* Done */
return (NULL);
}
{
char buf[80];
sprintf(buf, "Make (%ld): %ld - %ld = %ld.",
- len, virt_make, virt_kill, virt_make - virt_kill);
+ len, virt_make, virt_kill, virt_make - virt_kill);
plog(buf);
}