Updated linenoise and printf to better work

This commit is contained in:
Maieul BOYER 2024-07-07 19:50:33 +02:00
parent 0e18e20181
commit 8808f81221
No known key found for this signature in database
28 changed files with 657 additions and 579 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/07 13:08:52 by maiboyer #+# #+# */
/* Updated: 2024/05/22 15:05:19 by maiboyer ### ########.fr */
/* Updated: 2024/07/07 19:11:39 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,9 +15,12 @@
#include "me/types.h"
#include <stdlib.h>
// If you are looking at why some stuff aren't closed, they are using the
// __attribute__((dtor)) to be run at exit for example:
// - close_all_slots
// - uninit global allocator
void me_exit(t_i32 exit_code)
{
close_all_slots();
uninit_global_allocator();
(get_stdin(), get_stdout(), get_stderr());
exit(exit_code);
}