From 3f29b8558d7e4c76539569dee7a0b0f222382a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Wed, 7 Feb 2018 15:13:27 +0000 Subject: [PATCH] [qcommon] Make several zone variables and functions static. --- code/qcommon/common.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 11bcaf19..8512cc0d 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -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) {