]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.h
eliminated qbyte type, now uses unsigned char throughout the engine for this purpose
[xonotic/darkplaces.git] / zone.h
diff --git a/zone.h b/zone.h
index 0ef231be6fbe35e7b17114228e8043b0996167a3..12809647893a9d114eed9774404b60449ab40b62 100644 (file)
--- 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);