89 #define MEMB(name, structure, num) \ 90 static char CC_CONCAT(name,_memb_count)[num]; \ 91 static structure CC_CONCAT(name,_memb_mem)[num]; \ 92 static struct memb name = {sizeof(structure), num, \ 93 CC_CONCAT(name,_memb_count), \ 94 (void *)CC_CONCAT(name,_memb_mem)} 129 char memb_free(
struct memb *m,
void *ptr);
131 int memb_inmemb(
struct memb *m,
void *ptr);
133 int memb_numfree(
struct memb *m);
void * memb_alloc(struct memb *m)
Allocate a memory block from a block of memory declared with MEMB().
Default definitions of C compiler quirk work-arounds.
void memb_init(struct memb *m)
Initialize a memory block that was declared with MEMB().
char memb_free(struct memb *m, void *ptr)
Deallocate a memory block from a memory block previously declared with MEMB().