Fix mem-heap.c, mem-poolman.c and test_poolman.c compilation for '#ifndef MEM_STATS' case.
This commit is contained in:
@@ -119,7 +119,7 @@ static void mem_HeapStatFreeBlock( mem_BlockHeader_t *block_header_p);
|
|||||||
static void mem_HeapStatFreeBlockSplit( void);
|
static void mem_HeapStatFreeBlockSplit( void);
|
||||||
static void mem_HeapStatFreeBlockMerge( void);
|
static void mem_HeapStatFreeBlockMerge( void);
|
||||||
#else /* !MEM_STATS */
|
#else /* !MEM_STATS */
|
||||||
# define mem_InitStats()
|
# define mem_HeapStatInit()
|
||||||
# define mem_HeapStatAllocBlock( v)
|
# define mem_HeapStatAllocBlock( v)
|
||||||
# define mem_HeapStatFreeBlock( v)
|
# define mem_HeapStatFreeBlock( v)
|
||||||
# define mem_HeapStatFreeBlockSplit()
|
# define mem_HeapStatFreeBlockSplit()
|
||||||
|
|||||||
@@ -65,11 +65,11 @@ static void mem_PoolsStatFreePool( mem_PoolChunkType_t);
|
|||||||
static void mem_PoolsStatAllocChunk( mem_PoolChunkType_t);
|
static void mem_PoolsStatAllocChunk( mem_PoolChunkType_t);
|
||||||
static void mem_PoolsStatFreeChunk( mem_PoolChunkType_t);
|
static void mem_PoolsStatFreeChunk( mem_PoolChunkType_t);
|
||||||
#else /* !MEM_STATS */
|
#else /* !MEM_STATS */
|
||||||
# define mem_PoolsStatsInit()
|
# define mem_PoolsStatInit()
|
||||||
# define mem_PoolsStatAllocPool()
|
# define mem_PoolsStatAllocPool(v)
|
||||||
# define mem_PoolsStatsFreePool()
|
# define mem_PoolsStatFreePool(v)
|
||||||
# define mem_PoolsStatAllocChunk()
|
# define mem_PoolsStatAllocChunk(v)
|
||||||
# define mem_PoolsStatFreeChunk()
|
# define mem_PoolsStatFreeChunk(v)
|
||||||
#endif /* !MEM_STATS */
|
#endif /* !MEM_STATS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -93,8 +93,10 @@ main( int __unused argc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MEM_STATS
|
||||||
mem_PoolsStats_t stats;
|
mem_PoolsStats_t stats;
|
||||||
mem_PoolsGetStats( &stats);
|
mem_PoolsGetStats( &stats);
|
||||||
|
#endif /* MEM_STATS */
|
||||||
|
|
||||||
__printf("Pools stats:\n");
|
__printf("Pools stats:\n");
|
||||||
for(mem_PoolChunkType_t type = 0;
|
for(mem_PoolChunkType_t type = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user