87 #include <valgrind/memcheck.h>
89 #define VALGRIND_MAKE_MEM_UNDEFINED(ptr,sz)
90 #define VALGRIND_MAKE_MEM_NOACCESS(ptr,sz)
91 #define VALGRIND_MAKE_MEM_DEFINED_IF_ADDRESSABLE(ptr,sz)
114#define Z_ReallocElements(ptr,elements,newelements,elementsize) do{if (!ZF_ReallocElements(ptr,elements,newelements,elementsize))Sys_Error("Z_ReallocElements failed (%s %i)\n", __FILE__, __LINE__);}while(0)
139#ifdef USE_MSVCRT_DEBUG
140#define BZ_Malloc(size) BZ_MallocNamed(size, __FILE__, __LINE__)
141#define Z_Malloc(size) Z_MallocNamed(size, __FILE__, __LINE__)
142#define BZ_Realloc(ptr, size) BZ_ReallocNamed(ptr, size, __FILE__, __LINE__)
143#define BZF_Malloc(size) BZF_MallocNamed(size, __FILE__, __LINE__)
144#define ZF_Malloc(size) ZF_MallocNamed(size, __FILE__, __LINE__)
145#define BZF_Realloc(ptr, size) BZF_ReallocNamed(ptr, size, __FILE__, __LINE__)
146#define ZG_Malloc(ctx, size) ZG_MallocNamed(ctx, size, __FILE__, __LINE__)
147#define ZF_ReallocElements(p,e,n,s) ZF_ReallocElementsNamed(p,e,n,s,__FILE__,__LINE__)
149#define Z_StrDup(s) strcpy(Z_Malloc(strlen(s)+1), s)
150#define Z_StrDupPtr(v,s) do{Z_Free(*v),*(v) = strcpy(Z_Malloc(strlen(s)+1), s);}while(0)
static EGLSurface EGLSurface EGLContext ctx
Definition: gl_videgl.c:47
GLint size
Definition: glquake.h:157
GLenum format
Definition: glsupp.h:502
char ** data
Definition: p_script.c:63
const char * file
Definition: qcc_pr_lex.c:2518
static int void * ptr
Definition: snd_dma.c:483
int totalbytes
Definition: zone.h:132
void * first
Definition: zone.h:131
qboolean size_t * elements
Definition: zone.c:397
qboolean size_t size_t size_t elementsize
Definition: zone.c:399
qboolean size_t size_t newelements
Definition: zone.c:397
size_t newsize
Definition: zone.c:402
void * Hunk_TempAllocMore(size_t size)
Definition: zone.c:680
void Z_StrCat(char **ptr, const char *append)
Definition: zone.c:267
char * Z_StrDupf(const char *format,...)
Definition: zone.c:219
void * BZ_Realloc(void *ptr, size_t size)
Definition: zone.c:532
void QDECL ZG_FreeGroup(zonegroup_t *ctx)
Definition: zone.c:613
void VARGS Z_FreeTags(int tag)
Definition: zone.c:341
void * BZF_ReallocNamed(void *data, size_t newsize, const char *file, int line)
void VARGS Z_Free(void *ptr)
Definition: zone.c:336
void VARGS Z_TagFree(void *ptr)
Definition: zone.c:279
struct zonegroup_s zonegroup_t
void Z_StrCatLen(char **ptr, const char *append, size_t newlen)
Definition: zone.c:257
void * BZ_ReallocNamed(void *data, size_t newsize, const char *file, int line)
void * Z_TagMalloc(size_t size, int tag)
Definition: zone.c:114
void * ZF_MallocNamed(size_t size, char *file, int line)
void * BZ_MallocNamed(size_t size, const char *file, int line)
void *QDECL ZG_Malloc(zonegroup_t *ctx, size_t size)
void Cache_Flush(void)
Definition: zone.c:728
void Memory_DeInit(void)
Definition: zone.c:834
qboolean ZF_ReallocElementsNamed(void **ptr, size_t *elements, size_t newelements, size_t elementsize, const char *file, int line)
void * BZF_Malloc(size_t size)
Definition: zone.c:478
void * BZF_MallocNamed(size_t size, const char *file, int line)
void QDECL ZG_Free(zonegroup_t *ctx, void *ptr)
void * Z_Malloc(size_t size)
Definition: zone.c:209
void Memory_Init(void)
Definition: zone.c:801
void * ZF_Malloc(size_t size)
Definition: zone.c:190
void * Z_MallocNamed(size_t size, char *file, int line)
void * BZF_Realloc(void *data, size_t newsize)
Definition: zone.c:527
void * BZ_Malloc(size_t size)
Definition: zone.c:501
void * Hunk_TempAlloc(size_t size)
Definition: zone.c:714
void * ZG_MallocNamed(zonegroup_t *ctx, size_t size, char *file, int line)
qboolean ZF_ReallocElements(void **ptr, size_t *elements, size_t newelements, size_t elementsize)
void BZ_Free(void *ptr)
Definition: sys_plugfte.c:77