|
Defines |
| #define | IN_BALLOC |
| #define | ROUNDUP4(size) ((size) % 4) ? (size) + (4 - ((size) % 4)) : (size) |
Functions |
| static int | ballocGetSize (int size, int *q) |
| int | bopen (void *buf, int bufsize, int flags) |
| void | bclose () |
| void * | balloc (B_ARGS_DEC, int size) |
| void | bfree (B_ARGS_DEC, void *mp) |
| void | bfreeSafe (B_ARGS_DEC, void *mp) |
| char_t * | bstrdup (B_ARGS_DEC, char_t *s) |
| void * | brealloc (B_ARGS_DEC, void *mp, int newsize) |
| void | bstats (int handle, void(*writefn)(int handle, char_t *fmt,...)) |
Variables |
| static bType * | bQhead [B_MAX_CLASS] |
| static char * | bFreeBuf |
| static char * | bFreeNext |
| static int | bFreeSize |
| static int | bFreeLeft |
| static int | bFlags = B_USE_MALLOC |
| static int | bopenCount = 0 |