Small Update to ast...

This commit is contained in:
Maix0 2024-06-16 18:46:17 +02:00
parent 9f41a868a7
commit c9baa2b499
8 changed files with 393 additions and 133 deletions

View file

@ -18,7 +18,7 @@
#include <stdlib.h>
t_error vec_ast_push_front(t_vec_ast *vec,
t_ast_node * element)
t_ast_node element)
{
t_usize i;
@ -39,7 +39,7 @@ t_error vec_ast_push_front(t_vec_ast *vec,
return (NO_ERROR);
}
t_error vec_ast_pop_front(t_vec_ast *vec, t_ast_node * *value)
t_error vec_ast_pop_front(t_vec_ast *vec, t_ast_node *value)
{
t_usize i;
@ -59,7 +59,7 @@ t_error vec_ast_pop_front(t_vec_ast *vec, t_ast_node * *value)
void vec_ast_reverse(t_vec_ast *vec)
{
t_ast_node * temporary;
t_ast_node temporary;
t_usize i;
i = 0;
@ -72,9 +72,9 @@ void vec_ast_reverse(t_vec_ast *vec)
}
}
t_error vec_ast_back(t_vec_ast *vec, t_ast_node * **out)
t_error vec_ast_back(t_vec_ast *vec, t_ast_node **out)
{
t_ast_node * *temporary;
t_ast_node *temporary;
if (out == NULL)
out = &temporary;