mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-12 21:22:14 +00:00
[qcommon] Make several zone variables and functions static.
This commit is contained in:
parent
d047210aca
commit
3f29b8558d
1 changed files with 6 additions and 6 deletions
|
@ -794,19 +794,19 @@ typedef struct {
|
|||
} memzone_t;
|
||||
|
||||
// main zone for all "dynamic" memory allocation
|
||||
memzone_t *mainzone;
|
||||
static memzone_t *mainzone;
|
||||
// we also have a small zone for small allocations that would only
|
||||
// fragment the main zone (think of cvar and cmd strings)
|
||||
memzone_t *smallzone;
|
||||
static memzone_t *smallzone;
|
||||
|
||||
void Z_CheckHeap( void );
|
||||
static void Z_CheckHeap( void );
|
||||
|
||||
/*
|
||||
========================
|
||||
Z_ClearZone
|
||||
========================
|
||||
*/
|
||||
void Z_ClearZone( memzone_t *zone, int size ) {
|
||||
static void Z_ClearZone( memzone_t *zone, int size ) {
|
||||
memblock_t *block;
|
||||
|
||||
// set the entire zone to one free block
|
||||
|
@ -831,7 +831,7 @@ void Z_ClearZone( memzone_t *zone, int size ) {
|
|||
Z_AvailableZoneMemory
|
||||
========================
|
||||
*/
|
||||
int Z_AvailableZoneMemory( memzone_t *zone ) {
|
||||
static int Z_AvailableZoneMemory( memzone_t *zone ) {
|
||||
return zone->size - zone->used;
|
||||
}
|
||||
|
||||
|
@ -1076,7 +1076,7 @@ void *S_Malloc( int size ) {
|
|||
Z_CheckHeap
|
||||
========================
|
||||
*/
|
||||
void Z_CheckHeap( void ) {
|
||||
static void Z_CheckHeap( void ) {
|
||||
memblock_t *block;
|
||||
|
||||
for (block = mainzone->blocklist.next ; ; block = block->next) {
|
||||
|
|
Loading…
Reference in a new issue