From 2edfa06a011307c9e3b8aa6b84c418cb70c0ec7c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 30 May 2014 14:36:24 -0400 Subject: pool: Rename pool_alloc to palloc. --- libdimension/dimension/pool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimension/dimension') diff --git a/libdimension/dimension/pool.h b/libdimension/dimension/pool.h index 9b6574a..33f1dd7 100644 --- a/libdimension/dimension/pool.h +++ b/libdimension/dimension/pool.h @@ -43,7 +43,7 @@ dmnsn_pool *dmnsn_new_pool(void); * @param[in] callback An optional callback to invoke before the memory is freed. * @return The allocated memory area. */ -void *dmnsn_pool_alloc(dmnsn_pool *pool, size_t size, dmnsn_callback_fn *callback); +void *dmnsn_palloc(dmnsn_pool *pool, size_t size, dmnsn_callback_fn *callback); /** * Allocate some memory from a pool. @@ -51,7 +51,7 @@ void *dmnsn_pool_alloc(dmnsn_pool *pool, size_t size, dmnsn_callback_fn *callbac * @param[in] type The type of the memory block to allocate. * @return The allocated memory area. */ -#define DMNSN_POOL_ALLOC(pool, type) ((type *)dmnsn_pool_alloc((pool), sizeof(type), NULL)) +#define DMNSN_PALLOC(pool, type) ((type *)dmnsn_palloc((pool), sizeof(type), NULL)) /** * Free a memory pool and all associated allocations. -- cgit v1.2.3