Implemented some ast handlings...

ast lists, and_or, redirection and builtins
This commit is contained in:
Jean Herail 2026-01-17 17:33:22 +01:00
parent 1fc54e2bf3
commit bf992f2db4
10 changed files with 359 additions and 14 deletions

View file

@ -29,7 +29,7 @@ void ast_free_list(struct ast_list *ast_list)
if (ast_list == NULL)
return;
list_deep_destroy(ast_list->children);
ast_list_deep_destroy(ast_list->children);
free(ast_list);
}
@ -41,7 +41,8 @@ void ast_list_deep_destroy(struct list *l)
{
next_elt = elt->next;
ast_free(elt->data);
struct ast *node = (struct ast *)elt->data;
ast_free(&node);
free(elt);
elt = next_elt;
}