const char *filename;
int fileline;
// should always be MEMHEADER_SENTINEL1
- int sentinel1;
+ unsigned int sentinel1;
// immediately followed by data, which is followed by a MEMHEADER_SENTINEL2 byte
}
memheader_t;
// contents of the clump
qbyte block[MEMCLUMPSIZE];
// should always be MEMCLUMP_SENTINEL
- int sentinel1;
+ unsigned int sentinel1;
// if a bit is on, it means that the MEMUNIT bytes it represents are
// allocated, otherwise free
int bits[MEMBITINTS];
// should always be MEMCLUMP_SENTINEL
- int sentinel2;
+ unsigned int sentinel2;
// if this drops to 0, the clump is freed
int blocksinuse;
// largest block of memory available (this is reset to an optimistic
typedef struct mempool_s
{
// should always be MEMHEADER_SENTINEL1
- int sentinel1;
+ unsigned int sentinel1;
// chain of individual memory allocations
struct memheader_s *chain;
#if MEMCLUMPING
const char *filename;
int fileline;
// should always be MEMHEADER_SENTINEL1
- int sentinel2;
+ unsigned int sentinel2;
}
mempool_t;