21#ifndef GP_BLOCK_ALLOC_H
22#define GP_BLOCK_ALLOC_H
void * gp_balloc(gp_balloc_pool **self, size_t size)
Allocate memory from a block pool.
void gp_bfree(gp_balloc_pool **self)
Free all blocks in the allocator.
A compiler dependent macros.
#define GP_WUR
Expands to warn_unused_result attribute when supported by the compiler.
A block allocator block header.
struct gp_balloc_pool * next
A pointer to a next block.
size_t free
Free space in bytes in the block.