#include "builtins.h"#include "garbage.h"#include "ft_printf.h"#include "libft.h"#include "minishell.h"#include <readline/readline.h>#include <stdio.h>#include <stdlib.h>
Functions | |
| void | garbage_init (t_garbage *garbage) |
| Get the garbage object. | |
| void | add_to_garbage (t_garbage *garbage, void *ptr) |
| Add a pointer to the garbage list. | |
| void | free_garbage (t_garbage *garbage) |
| Free the garbage. | |
| void * | malloc_gb (t_garbage *garbage, size_t size) |
| Replace the original malloc by storing the created adresses into a garbage to remove them afterwards. | |