I want to kill sheeps in minecraft with a sword
This commit is contained in:
parent
4f1768b9e8
commit
a779ccb768
17 changed files with 488 additions and 268 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/07 09:42:02 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/07 09:43:31 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/12 17:10:51 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -18,5 +18,6 @@
|
|||
void *me_malloc(t_usize size);
|
||||
void *me_calloc(t_usize elem_count, t_usize elem_size);
|
||||
void *me_realloc(void *ptr, t_usize size);
|
||||
void *me_realloc_array(void *ptr, t_usize elem_size, t_usize elem_count);
|
||||
|
||||
#endif /* ALLOC_H */
|
||||
|
|
|
|||
34
stdme/include/me/alloc/alloc_dumb_internal.h
Normal file
34
stdme/include/me/alloc/alloc_dumb_internal.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* alloc_dumb_internal.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/12 15:03:59 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/12 16:42:39 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ALLOC_DUMB_INTERNAL_H
|
||||
#define ALLOC_DUMB_INTERNAL_H
|
||||
|
||||
#include "me/types.h"
|
||||
|
||||
#define PTR_LENS 255
|
||||
|
||||
typedef struct s_ptr
|
||||
{
|
||||
void *ptr;
|
||||
t_usize size;
|
||||
} t_ptr;
|
||||
|
||||
typedef struct s_ptr_table
|
||||
{
|
||||
t_ptr table[PTR_LENS];
|
||||
struct s_ptr_table *next;
|
||||
} t_ptr_table;
|
||||
|
||||
t_ptr_table *get_table(void);
|
||||
|
||||
#endif /* ALLOC_DUMB_INTERNAL_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue