--------------------- PatchSet 2142 Date: 2001/04/28 23:54:42 Author: hno Branch: chunked_mempools Tag: (none) Log: namespace cleanup Members: lib/MemPool.c:1.1.2.6->1.1.2.7 Index: squid/lib/MemPool.c =================================================================== RCS file: /cvsroot/squid-sf//squid/lib/Attic/MemPool.c,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- squid/lib/MemPool.c 28 Apr 2001 01:22:14 -0000 1.1.2.6 +++ squid/lib/MemPool.c 28 Apr 2001 23:54:42 -0000 1.1.2.7 @@ -113,21 +113,16 @@ static int bounds; static void memArrayGrow(Array * a, int min_capacity); -void memArrayInit(Array * s); -void memArrayClean(Array * s); -void memArrayAppend(Array * s, void *obj); -void memArrayDestroy(Array * s); -void memPoolClean(MemPool * pool, time_t maxage); -void memPoolCreateChunk(MemPool * pool); +static void memPoolCreateChunk(MemPool * pool); static MemPool *lastPool; -int +static int memCompChunks(MemChunk * chunkA, MemChunk * chunkB) { return chunkA->objCache - chunkB->objCache; } -int +static int memCompObjChunks(void *obj, MemChunk * chunk) { bounds = obj - chunk->objCache; @@ -138,7 +133,7 @@ return 1; } -MemChunk * +static MemChunk * memPoolChunkNew(MemPool * pool) { int i; @@ -168,7 +163,7 @@ return chunk; } -void +static void memPoolChunkDestroy(MemPool * pool, MemChunk * chunk) { memMeterDel(pool->meter.alloc, pool->capacity); @@ -183,7 +178,7 @@ xfree(chunk); } -void +static void memPoolPush(MemPool * pool, void *obj) { void **Free; @@ -201,7 +196,7 @@ * Insert new chunk in front of lowest ram chunk, making it preferred in future, * and resulting slow compaction towards lowest ram area. */ -void * +static void * memPoolGet(MemPool * pool) { MemChunk *chunk; @@ -236,7 +231,7 @@ } /* just create a new chunk and place it into a good spot in the chunk chain */ -void +static void memPoolCreateChunk(MemPool * pool) { MemChunk *chunk, *new;