Typed allocation macros. More...
Macros | |
#define | mi_malloc_tp(tp) |
Allocate a block of type tp. More... | |
#define | mi_zalloc_tp(tp) |
Allocate a zero-initialized block of type tp. More... | |
#define | mi_calloc_tp(tp, count) |
Allocate count zero-initialized blocks of type tp. More... | |
#define | mi_mallocn_tp(tp, count) |
Allocate count blocks of type tp. More... | |
#define | mi_reallocn_tp(p, tp, count) |
Re-allocate to count blocks of type tp. More... | |
#define | mi_heap_malloc_tp(hp, tp) |
Allocate a block of type tp in a heap hp. More... | |
#define | mi_heap_zalloc_tp(hp, tp) |
Allocate a zero-initialized block of type tp in a heap hp. More... | |
#define | mi_heap_calloc_tp(hp, tp, count) |
Allocate count zero-initialized blocks of type tp in a heap hp. More... | |
#define | mi_heap_mallocn_tp(hp, tp, count) |
Allocate count blocks of type tp in a heap hp. More... | |
#define | mi_heap_reallocn_tp(hp, p, tp, count) |
Re-allocate to count blocks of type tp in a heap hp. More... | |
#define | mi_heap_recalloc_tp(hp, p, tp, count) |
Re-allocate to count zero initialized blocks of type tp in a heap hp. More... | |
Typed allocation macros.
#define mi_calloc_tp | ( | tp, | |
count | |||
) |
Allocate count zero-initialized blocks of type tp.
#define mi_heap_calloc_tp | ( | hp, | |
tp, | |||
count | |||
) |
Allocate count zero-initialized blocks of type tp in a heap hp.
#define mi_heap_malloc_tp | ( | hp, | |
tp | |||
) |
Allocate a block of type tp in a heap hp.
#define mi_heap_mallocn_tp | ( | hp, | |
tp, | |||
count | |||
) |
Allocate count blocks of type tp in a heap hp.
#define mi_heap_reallocn_tp | ( | hp, | |
p, | |||
tp, | |||
count | |||
) |
Re-allocate to count blocks of type tp in a heap hp.
#define mi_heap_recalloc_tp | ( | hp, | |
p, | |||
tp, | |||
count | |||
) |
Re-allocate to count zero initialized blocks of type tp in a heap hp.
#define mi_heap_zalloc_tp | ( | hp, | |
tp | |||
) |
Allocate a zero-initialized block of type tp in a heap hp.
#define mi_malloc_tp | ( | tp | ) |
Allocate a block of type tp.
tp | The type of the block to allocate. |
Example:
#define mi_mallocn_tp | ( | tp, | |
count | |||
) |
Allocate count blocks of type tp.
#define mi_reallocn_tp | ( | p, | |
tp, | |||
count | |||
) |
Re-allocate to count blocks of type tp.
#define mi_zalloc_tp | ( | tp | ) |
Allocate a zero-initialized block of type tp.