-/* 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];
/* Use "free" */
free ((char*)(p));
- /* Done */
return (NULL);
}
/*
* Allocate a constant string, containing the same thing as 'str'
*/
-cptr string_make(cptr str)
+concptr string_make(concptr str)
{
huge len = 0;
- cptr t = str;
+ concptr t = str;
char *s, *res;
/* Simple sillyness */
* Un-allocate a string allocated above.
* Depends on no changes being made to the string.
*/
-errr string_free(cptr str)
+errr string_free(concptr str)
{
huge len = 0;