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/tests/pool.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libdimension/tests') diff --git a/libdimension/tests/pool.c b/libdimension/tests/pool.c index 68ecfae..e135ce4 100644 --- a/libdimension/tests/pool.c +++ b/libdimension/tests/pool.c @@ -42,7 +42,7 @@ DMNSN_TEST_TEARDOWN(pool) DMNSN_TEST(pool, simple) { for (int i = 0; i < 10000; ++i) { - int *p = DMNSN_POOL_ALLOC(pool, int); + int *p = DMNSN_PALLOC(pool, int); *p = i; } @@ -59,10 +59,10 @@ callback(void *ptr) DMNSN_TEST(pool, callback) { - dmnsn_pool_alloc(pool, sizeof(int), NULL); - dmnsn_pool_alloc(pool, sizeof(int), callback); - dmnsn_pool_alloc(pool, sizeof(int), callback); - dmnsn_pool_alloc(pool, sizeof(int), NULL); + dmnsn_palloc(pool, sizeof(int), NULL); + dmnsn_palloc(pool, sizeof(int), callback); + dmnsn_palloc(pool, sizeof(int), callback); + dmnsn_palloc(pool, sizeof(int), NULL); dmnsn_delete_pool(pool); pool = NULL; @@ -74,7 +74,7 @@ static int alloc_thread(void *ptr, unsigned int thread, unsigned int nthreads) { for (unsigned int i = thread; i < 10000; i += nthreads) { - int *p = DMNSN_POOL_ALLOC(pool, int); + int *p = DMNSN_PALLOC(pool, int); *p = i; } return 0; -- cgit v1.2.3