11 static struct arena
*arena_head
, *arena_tail
;
13 void *cget_arena(size_t size
, size_t nmemb
)
20 a
= calloc(sizeof(*a
), 1);
24 a
->size
= size
* nmemb
;
25 a
->ptr
= calloc(size
, nmemb
);
36 arena_head
= arena_tail
= a
;
42 void *mget_arena(size_t size
)
44 return cget_arena(size
, 1);
47 void release_arenas(void)
60 arena_head
= arena_tail
= NULL
;