diff options
Diffstat (limited to 'src_c/pool.c')
| -rw-r--r-- | src_c/pool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src_c/pool.c b/src_c/pool.c index 619a97d..04968c8 100644 --- a/src_c/pool.c +++ b/src_c/pool.c @@ -66,7 +66,7 @@ void opcut_pool_destroy(opcut_pool_t *pool) { } -void *opcut_pool_get(opcut_pool_t *pool) { +void *opcut_pool_alloc(opcut_pool_t *pool) { if (!pool->items) allocate_block(pool); @@ -78,7 +78,8 @@ void *opcut_pool_get(opcut_pool_t *pool) { return header + 1; } -void opcut_pool_return(opcut_pool_t *pool, void *item) { + +void opcut_pool_free(opcut_pool_t *pool, void *item) { header_t *header = (header_t *)item - 1; header->next = pool->items; pool->items = header; |
