mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-27 03:16:09 +01:00
Setting up 3.5.0 as trunk
This commit is contained in:
parent
0ddbd8b56e
commit
99e3aa4d8b
1336 changed files with 514917 additions and 0 deletions
36
src/zmalloc.h
Normal file
36
src/zmalloc.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
/*
|
||||
** Zmalloc, a simple memory-allocation monitor.
|
||||
**
|
||||
** Copyright 1996 Eric Murray, ericm@lne.com
|
||||
**
|
||||
** You may make free use of this code but please give me credit.
|
||||
**
|
||||
**
|
||||
** Documentation: http://www.lne.com/ericm/zmalloc
|
||||
**
|
||||
** $Id: zmalloc.h,v 1.1 1998/05/25 16:31:35 ericm Exp $
|
||||
** $Log: zmalloc.h,v $
|
||||
** Revision 1.1 1998/05/25 16:31:35 ericm
|
||||
** Initial revision
|
||||
**
|
||||
**
|
||||
*/
|
||||
|
||||
#ifndef ZMALLOC_H
|
||||
#define ZMALLOC_H
|
||||
|
||||
int *zmalloc(int, char *, int);
|
||||
void zfree(int *, char *, int);
|
||||
void zfree_special (int *, char *, int);
|
||||
int zmalloc_check();
|
||||
char *zstrdup(const char*, char*, int);
|
||||
|
||||
#define malloc(x) zmalloc((x),__FILE__,__LINE__)
|
||||
#define calloc(n,x) zmalloc((n*x),__FILE__,__LINE__)
|
||||
#define free(x) zfree((int *)(x),__FILE__,__LINE__)
|
||||
#undef strdup
|
||||
#define strdup(x) zstrdup((x), __FILE__, __LINE__)
|
||||
|
||||
#endif /* ZMALLOC_H */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue