69424fe5a90aff4e1d8fc3f7c92611c837116e71 tdreszer Tue Feb 5 16:25:42 2013 -0800 Dropped lmFlushZ function at Angie's request. It added little value over lmCleanup/lmInit. diff --git src/inc/localmem.h src/inc/localmem.h index 58e2b52..7011789 100644 --- src/inc/localmem.h +++ src/inc/localmem.h @@ -7,34 +7,30 @@ * This file is copyright 2002 Jim Kent, but license is hereby * granted for all use - public, private or commercial. */ #ifndef LOCALMEM_H #define LOCALMEM_H struct lm *lmInit(int blockSize); /* Create a local memory pool. Parameters are: * blockSize - how much system memory to allocate at a time. Can * pass in zero and a reasonable default will be used. */ void lmCleanup(struct lm **pLm); /* Clean up a local memory pool. */ -int lmFlushZ(struct lm *lm); -// Zero's and makes available most recent block of pool, abandoning older blocks -// USE WITH CAUTION: All previous pointers into lm will be invalid - size_t lmAvailable(struct lm *lm); // Returns currently available memory in pool size_t lmSize(struct lm *lm); // Returns current size of pool, even for memory already allocated void *lmAlloc(struct lm *lm, size_t size); /* Allocate memory from local pool. */ void *lmAllocMoreMem(struct lm *lm, void *pt, size_t oldSize, size_t newSize); /* Adjust memory size on a block, possibly relocating it. If block is grown, * new memory is zeroed. NOTE: in RARE cases, same pointer may be returned. */ void *lmCloneMem(struct lm *lm, void *pt, size_t size); /* Return a local mem copy of memory block. */