X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=zone.h;h=12809647893a9d114eed9774404b60449ab40b62;hb=71ae32e430bcde74c4082b15b034bbb34aff526d;hp=0ef231be6fbe35e7b17114228e8043b0996167a3;hpb=85d7c7f18c78cf77d7d00453338892e042b51eb3;p=xonotic%2Fdarkplaces.git diff --git a/zone.h b/zone.h index 0ef231be..12809647 100644 --- a/zone.h +++ b/zone.h @@ -66,7 +66,7 @@ memheader_t; typedef struct memclump_s { // contents of the clump - qbyte block[MEMCLUMPSIZE]; + unsigned char block[MEMCLUMPSIZE]; // should always be MEMCLUMP_SENTINEL unsigned int sentinel1; // if a bit is on, it means that the MEMUNIT bytes it represents are @@ -132,10 +132,11 @@ void _Mem_FreePool(mempool_t **pool, const char *filename, int fileline); void _Mem_EmptyPool(mempool_t *pool, const char *filename, int fileline); void _Mem_CheckSentinels(void *data, const char *filename, int fileline); void _Mem_CheckSentinelsGlobal(const char *filename, int fileline); +// if pool is NULL this searches ALL pools for the allocation qboolean Mem_IsAllocated(mempool_t *pool, void *data); // used for temporary allocations -mempool_t *tempmempool; +extern mempool_t *tempmempool; void Memory_Init (void); void Memory_Shutdown (void);