Lines Matching refs:heap
3 * \brief Simple heap allocator
30 struct heap;
32 typedef union heap_header *(*Morecore_func_t)(struct heap *h, unsigned nu);
34 struct heap {
40 void heap_init(struct heap *heap, void *buf, size_t buflen,
42 void *heap_alloc(struct heap *heap, size_t nbytes);
43 void heap_free(struct heap *heap, void *ap);
44 union heap_header *heap_default_morecore(struct heap *h, unsigned nu);