misc: many things

This commit is contained in:
mcolonna 2024-03-07 23:37:34 +01:00
parent 664b18eb2e
commit 8076487071
25 changed files with 554 additions and 73 deletions

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/18 16:37:23 by mcolonna #+# #+# */
/* Updated: 2024/01/23 18:13:29 by mcolonna ### ########.fr */
/* Updated: 2024/03/11 14:03:48 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,9 +20,12 @@
typedef struct s_memclass_in *t_memclass_in;
typedef struct s_element t_element;
typedef struct s_memclass_in *t_memclass_in;
typedef struct s_element
{
void *address;
t_memclass_in subclass;
t_element *previous;
t_element *next;
t_memclass_in mc;
@ -31,6 +34,7 @@ typedef struct s_element
typedef struct s_memclass_in
{
t_element *first;
t_element *parent_element;
} *t_memclass_in;
void *create_address_with_element(t_element *element, size_t size);
@ -39,4 +43,6 @@ t_element *get_address_element(void *address);
void free_address_with_element(void *address);
void freeelement(t_element *el);
#endif