tbamud-3.67/bin/
tbamud-3.67/cnf/
tbamud-3.67/lib/etc/
tbamud-3.67/lib/misc/
tbamud-3.67/lib/plrfiles/A-E/
tbamud-3.67/lib/plrfiles/F-J/
tbamud-3.67/lib/plrfiles/K-O/
tbamud-3.67/lib/plrfiles/P-T/
tbamud-3.67/lib/plrfiles/U-Z/
tbamud-3.67/lib/plrfiles/ZZZ/
tbamud-3.67/lib/plrobjs/A-E/
tbamud-3.67/lib/plrobjs/F-J/
tbamud-3.67/lib/plrobjs/K-O/
tbamud-3.67/lib/plrobjs/P-T/
tbamud-3.67/lib/plrobjs/U-Z/
tbamud-3.67/lib/plrobjs/ZZZ/
tbamud-3.67/lib/text/
tbamud-3.67/lib/text/help/
tbamud-3.67/lib/world/qst/
tbamud-3.67/lib/world/shp/
tbamud-3.67/log/
tbamud-3.67/src/
/**
* @file zmalloc.h
* A simple memory allocation monitor, header.
* 
* Part of the core tbaMUD source code distribution, which is a derivative
* of, and continuation of, CircleMUD.
*                                                                        
* This code was not part of the original CircleMUD distribution. It has been
* included in tbaMUD and is attributed to:
* Version 1.1 Copyright 1996, 1998, 1999, 2000 Eric Murray ericm@lne.com               
*/

#ifndef _ZMALLOC_H_
#define _ZMALLOC_H_

unsigned char *zmalloc(int, char *, int);
unsigned char *zrealloc(unsigned char *, int, char *, int);
void zfree(unsigned char *, char *, int);
void zmalloc_init(void);
void zmalloc_check(void);
char *zstrdup(const char *, char *, int);

#define malloc(x)	zmalloc((x),__FILE__,__LINE__)
#define calloc(n,x)	zmalloc((n*x),__FILE__,__LINE__)
#define realloc(r,x)	zrealloc((unsigned char *)(r),(x),__FILE__,__LINE__)
#define free(x)		zfree((unsigned char *)(x),__FILE__,__LINE__)
#undef  strdup
#define strdup(x)	zstrdup((x), __FILE__, __LINE__)

#endif /* _ZMALLOC_H_ */