Normed most of the stdme
This commit is contained in:
parent
882d5cb5bb
commit
ac5458d42c
31 changed files with 149 additions and 617 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue