mymalloc.h

pennmush/hdrs/mymalloc.h · 594 B

From the archive pennmush-1.7.2p10.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

#ifdef I_MALLOC
#include <malloc.h>
#endif

#include "options.h"

#if (MALLOC_PACKAGE == 1)
#define CSRI
#endif
#if (MALLOC_PACKAGE == 2)
#define CSRI
#define CSRI_TRACE
#define CSRI_PROFILESIZES
#define CSRI_DEBUG
#endif
#if (MALLOC_PACKAGE == 3)
#define USE_SMALLOC
#endif
#if (MALLOC_PACKAGE == 4)
#define USE_SMALLOC
#define SLOW_STATISTICS
#endif

#endif				/* _MYMALLOC_H */

Site Stats

Snippets: 1791
Codebases: 571