blob: bc7471fbbc1646ee7f1c41e8124d317ff4b2bb3d (
plain)
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
|
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "list.h"
#include "simplex86.h"
typedef struct block_t block_t;
typedef struct
{
list_t blocks;
} allocator_t;
void
allocator_init (allocator_t *allocator);
void
allocator_fini (allocator_t *allocator);
void *
allocator_alloc (allocator_t *allocator, size_t size);
void *
allocator_realloc (allocator_t *allocator, void *mem, size_t size);
void
allocator_free (allocator_t *allocator, void *mem);
|