Mercurial > hg > dmlib
diff src/dmgrowbuf.h @ 1458:b2dd6a72d162
Adjust semantics of growbuf and add new function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 May 2018 21:00:59 +0300 |
parents | a957b318fbe2 |
children | e8fe529f4341 |
line wrap: on
line diff
--- a/src/dmgrowbuf.h Thu May 10 19:58:52 2018 +0300 +++ b/src/dmgrowbuf.h Thu May 10 21:00:59 2018 +0300 @@ -21,8 +21,9 @@ } DMGrowBuf; -int dmGrowBufInit(DMGrowBuf *buf, const size_t initial, const size_t mingrow); -int dmGrowBufAlloc(DMGrowBuf **pbuf, const size_t initial, const size_t mingrow); +int dmGrowBufInit(DMGrowBuf *buf); +int dmGrowBufAlloc(DMGrowBuf *buf, const size_t initial, const size_t mingrow); +int dmGrowBufNew(DMGrowBuf **pbuf, const size_t initial, const size_t mingrow); void dmGrowBufFree(DMGrowBuf *buf); BOOL dmGrowBufGrow(DMGrowBuf *buf, const size_t amount); BOOL dmGrowBufCheckGrow(DMGrowBuf *buf, const size_t nsize);