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

@ -13,6 +13,10 @@ void ast_free(struct ast **node)
ast_free_command(ast_get_command(*node));
else if (ast_is_list(*node))
ast_free_list(ast_get_list(*node));
else if (ast_is_and_or(*node))
ast_free_and_or(ast_get_and_or(*node));
else if (ast_is_redir(*node))
ast_free_redir(ast_get_redir(*node));
free(*node);
*node = NULL;