Made a memory allocator (crude)
This commit is contained in:
parent
b5c7344851
commit
941bac31b6
53 changed files with 469 additions and 146 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 15:05:06 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/02 16:01:52 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/07 14:59:27 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ t_error handle_concat(t_node *self, t_utils *shcat, t_str *ret)
|
|||
if (node_get_string(&self->childs[i], shcat, &tmp))
|
||||
return (str_free(out), ERROR);
|
||||
push_str_buffer(&out, tmp);
|
||||
free(tmp);
|
||||
me_free(tmp);
|
||||
i++;
|
||||
}
|
||||
*ret = out.buf;
|
||||
|
|
|
|||
|
|
@ -6,12 +6,13 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/03 15:24:25 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/04 18:28:39 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/07 14:55:25 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "app/node/handle_expension.h"
|
||||
#include "gmr/symbols.h"
|
||||
#include "me/hashmap/hashmap_env.h"
|
||||
#include "me/types.h"
|
||||
|
||||
t_error handle_expension_complex(t_node *self, t_utils *shcat, t_str *ret)
|
||||
|
|
@ -26,6 +27,7 @@ t_error handle_expension_simple(t_node *self, t_utils *shcat, t_str *ret)
|
|||
(void)(self);
|
||||
(void)(shcat);
|
||||
(void)(ret);
|
||||
//get_hashmap_env(shcat->env, (t_str *)&"fjdksf");
|
||||
return (ERROR);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue