Implemented some ast handlings...
ast lists, and_or, redirection and builtins
This commit is contained in:
parent
cf7825aaf0
commit
e9b6d39760
10 changed files with 359 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue