}
void *
-pool_alloc(alloc_pool_t p, size_t len, const char *bomb)
+pool_alloc(alloc_pool_t p, size_t len, const char *bomb_msg)
{
struct alloc_pool *pool = (struct alloc_pool *) p;
if (!pool)
len += pool->quantum - len % pool->quantum;
if (len > pool->size)
- goto bomb;
+ goto bomb_out;
if (!pool->live || len > pool->live->free) {
void *start;
asize += sizeof (struct pool_extent);
if (!(start = new_array(char, asize)))
- goto bomb;
+ goto bomb_out;
if (pool->flags & POOL_CLEAR)
memset(start, 0, free);
if (pool->flags & POOL_APPEND)
ext = PTR_ADD(start, free);
else if (!(ext = new(struct pool_extent)))
- goto bomb;
+ goto bomb_out;
if (pool->flags & POOL_QALIGN && pool->quantum > 1
&& (skew = (size_t)PTR_ADD(start, free) % pool->quantum)) {
bound += skew;
return PTR_ADD(pool->live->start, pool->live->free);
-bomb:
+ bomb_out:
if (pool->bomb)
- (*pool->bomb)(bomb);
+ (*pool->bomb)(bomb_msg);
return NULL;
}