b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | //#include <stdbool.h> |
2 | //#include <stddef.h> | ||||
3 | #include "Typedef.h" | ||||
4 | |||||
5 | #ifndef size_t | ||||
6 | #define size_t int | ||||
7 | #endif | ||||
8 | int ta_init(); | ||||
9 | void *ta_alloc(size_t num); | ||||
10 | void *ta_calloc(size_t num, size_t size); | ||||
11 | int ta_free(void *ptr); | ||||
12 | |||||
13 | size_t ta_num_free(); | ||||
14 | size_t ta_num_used(); | ||||
15 | size_t ta_num_fresh(); | ||||
16 | int ta_check(); | ||||
17 | int mreserve(unsigned int start, unsigned int num); | ||||
18 | int is_heap_init(void); |