Commit 97d86932 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(SMALLOC_MAGIC_ALLOC): Moved to ram-smalloc.c.

(SMALLOC_MAGIC_FREE): Ditto.  (Bug 562).
parent c37c06b9
/*
* $Id: smalloc.h,v 0.9 1999/05/24 09:38:17 ceder Exp $
* $Id: smalloc.h,v 0.10 2002/08/07 23:31:05 ceder Exp $
* Copyright (C) 1991-1992, 1994-1995, 1998-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -22,24 +22,16 @@
*
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* smalloc.h
*
* Contains memory allocator routines
*
*/
/*
* The servers "general" memory handler.
* Wrappers around malloc()/realloc()/free() that never returns NULL.
*/
#define SMALLOC_MAGIC_ALLOC 0x12FE56A0u
#define SMALLOC_MAGIC_FREE 0xCA348E63u
/*
* "safe" malloc. Handles the case when malloc returns NULL.
* smalloc cannot fail.
* "safe" malloc. Handles the case when malloc returns NULL. smalloc
* will never return on failure. Will always return a distinct
* pointer, even when size is 0. The memory allocated memory must be
* returned to sfree() or srealloc(), not to free()
*/
extern void *
smalloc(size_t size);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment