mem.h revision 15a44745412679c30a6d022733925af70a38b715
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * Copyright (C) 1997-2000 Internet Software Consortium.
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * Permission to use, copy, modify, and distribute this software for any
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * purpose with or without fee is hereby granted, provided that the above
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * copyright notice and this permission notice appear in all copies.
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen/* $Id: mem.h,v 1.39 2000/07/27 09:51:53 tale Exp $ */
#include <stdio.h>
typedef void (*isc_memfree_t)(void *, void *);
#define ISC_MEM_DEBUG
#define ISC_MEM_TRACKLINES
#define ISC_MEM_CHECKOVERRUN
#define ISC_MEM_FILL
#define ISC_MEMPOOL_NAMES
extern unsigned int isc_mem_debugging;
#ifdef ISC_MEM_TRACKLINES
#define _ISC_MEM_FLARG , const char *, int
#define _ISC_MEM_FILELINE
#define _ISC_MEM_FLARG
#ifdef ISC_MEM_DEBUG
#define isc_mem_put(c, p, s) \
(p) = NULL; \
#define isc_mem_free(c, p) \
(p) = NULL; \
#define isc_mempool_put(c, p) \
(p) = NULL; \