Normed most of the stdme

This commit is contained in:
Maieul BOYER 2024-07-10 18:06:10 +02:00
parent 882d5cb5bb
commit ac5458d42c
No known key found for this signature in database
31 changed files with 149 additions and 617 deletions

View file

@ -6,16 +6,16 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/06 14:47:49 by maiboyer #+# #+# */
/* Updated: 2024/05/22 15:01:06 by maiboyer ### ########.fr */
/* Updated: 2024/07/10 17:48:20 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#include "me/mem/_allocator.h"
#include "me/mem/mem.h"
void *mem_alloc(t_usize size)
void *mem_alloc(t_usize size)
{
t_allocator *a;
t_allocator *a;
void *ret;
a = global_allocator();
@ -25,9 +25,9 @@ void *mem_alloc(t_usize size)
return (ret);
}
void mem_free(void *ptr)
void mem_free(void *ptr)
{
t_allocator *a;
t_allocator *a;
a = global_allocator();
return (a->free(a, ptr));