mymalloc.h

pennmush/hdrs/mymalloc.h · 648 B

From the archive pennmush-1.8.0p11.tar.gz

Download the archive   « Back to the archive contents

/* A wrapper header that sets up the proper defines based on
 * options.h's MALLOC_PACKAGE
 */

#ifndef _MYMALLOC_H
#define _MYMALLOC_H

#ifdef WIN32
#undef malloc
#undef calloc
#undef realloc
#undef free
#endif

/* If you're using gmalloc on some linux kernels, and have trouble
 * with the compile, consider uncommenting this line: */
/*#undef I_MALLOC */
#ifdef I_MALLOC
#include <malloc.h>
#endif

#include "options.h"

#if (MALLOC_PACKAGE == 1)
#define CSRI
#elif (MALLOC_PACKAGE == 2)
#include <stdlib.h>
#define CSRI
#define CSRI_TRACE
#define CSRI_PROFILESIZES
#define CSRI_DEBUG
#include "csrimalloc.h"
#endif

#endif				/* _MYMALLOC_H */

Site Stats

Snippets: 1791
Codebases: 571