Typisierte Allokationsmakros. Mehr...
Makros | |
| #define | mi_malloc_tp(tp) |
| Allokiert einen Block vom Typ tp. | |
| #define | mi_zalloc_tp(tp) |
| Allokiert einen null-initialisierten Block vom Typ tp. | |
| #define | mi_calloc_tp(tp, count) |
| Allokiert count null-initialisierte Blöcke vom Typ tp. | |
| #define | mi_mallocn_tp(tp, count) |
| Allokiert count Blöcke vom Typ tp. | |
| #define | mi_reallocn_tp(p, tp, count) |
| Re-allokiert zu count Blöcken vom Typ tp. | |
| #define | mi_heap_malloc_tp(hp, tp) |
| Allokiert einen Block vom Typ tp in einem Heap hp. | |
| #define | mi_heap_zalloc_tp(hp, tp) |
| Allokiert einen null-initialisierten Block vom Typ tp in einem Heap hp. | |
| #define | mi_heap_calloc_tp(hp, tp, count) |
| Allokiert count null-initialisierte Blöcke vom Typ tp in einem Heap hp. | |
| #define | mi_heap_mallocn_tp(hp, tp, count) |
| Allokiert count Blöcke vom Typ tp in einem Heap hp. | |
| #define | mi_heap_reallocn_tp(hp, p, tp, count) |
| Re-allokiert zu count Blöcken vom Typ tp in einem Heap hp. | |
| #define | mi_heap_recalloc_tp(hp, p, tp, count) |
| Re-allokiert zu count null-initialisierten Blöcken vom Typ tp in einem Heap hp. | |
Typisierte Allokationsmakros.
Zum Beispiel
| #define mi_calloc_tp | ( | tp, | |
| count ) |
Allokiert count null-initialisierte Blöcke vom Typ tp.
| #define mi_heap_calloc_tp | ( | hp, | |
| tp, | |||
| count ) |
Allokiert count null-initialisierte Blöcke vom Typ tp in einem Heap hp.
| #define mi_heap_malloc_tp | ( | hp, | |
| tp ) |
Allokiert einen Block vom Typ tp in einem Heap hp.
| #define mi_heap_mallocn_tp | ( | hp, | |
| tp, | |||
| count ) |
Allokiert count Blöcke vom Typ tp in einem Heap hp.
| #define mi_heap_reallocn_tp | ( | hp, | |
| p, | |||
| tp, | |||
| count ) |
Re-allokiert zu count Blöcken vom Typ tp in einem Heap hp.
| #define mi_heap_recalloc_tp | ( | hp, | |
| p, | |||
| tp, | |||
| count ) |
Re-allokiert zu count null-initialisierten Blöcken vom Typ tp in einem Heap hp.
| #define mi_heap_zalloc_tp | ( | hp, | |
| tp ) |
Allokiert einen null-initialisierten Block vom Typ tp in einem Heap hp.
| #define mi_malloc_tp | ( | tp | ) |
Allokiert einen Block vom Typ tp.
| tp | Der Typ des zu allokierenden Blocks. |
Beispiel
| #define mi_mallocn_tp | ( | tp, | |
| count ) |
Allokiert count Blöcke vom Typ tp.
| #define mi_reallocn_tp | ( | p, | |
| tp, | |||
| count ) |
Re-allokiert zu count Blöcken vom Typ tp.
| #define mi_zalloc_tp | ( | tp | ) |
Allokiert einen null-initialisierten Block vom Typ tp.