blob: f96cc434e00a8db4c4f882bd2ed651ba15626809 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <stdbool.h>
#include <stddef.h>
#ifndef TA_ALIGN
#define TA_ALIGN 8
#endif
#ifndef TA_BASE
#define TA_BASE 0x400
#endif
#ifndef TA_HEAP_START
#define TA_HEAP_START 0x444
#endif
#ifndef TA_HEAP_LIMIT
#define TA_HEAP_LIMIT (1 << 24)
#endif
#ifndef TA_HEAP_BLOCKS
#define TA_HEAP_BLOCKS 0x4
#endif
bool talloc_init();
void *talloc(size_t num);
bool talloc_free(void *ptr);
size_t talloc_num_free();
size_t talloc_num_used();
size_t talloc_num_avail();
bool talloc_check();
|