-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgc.h
22 lines (20 loc) · 1.09 KB
/
gc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* gc.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wabolles <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/25 14:18:07 by wabolles #+# #+# */
/* Updated: 2024/11/25 17:36:07 by wabolles ### ########.fr */
/* */
/* ************************************************************************** */
typedef struct s_garbage
{
void *ptr;
struct s_garbage *next;
} t_garbage;
static t_garbage **gc_list(void) __attribute__ ((unused));
void gc_add(void *ptr);
void *gc_malloc(size_t size);
void gc_free_all(void);