maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
void | free_args (char **args) |
void | free_env_list (t_env *env) |
void | free_ms_data (t_ms_data *data) |
void | loop_cleanup (t_loop_data *loop_data, t_token *tokens_head) |
void | free_ast (t_ast *node) |
void | free_all_tokens (t_token *tokens) |
void free_all_tokens | ( | t_token * | tokens | ) |
Definition at line 17 of file clean_utils.c.
Referenced by loop_cleanup().
void free_args | ( | char ** | args | ) |
void free_ast | ( | t_ast * | node | ) |
Definition at line 74 of file clean.c.
References s_ast::args, free_ast(), s_ast::left, and s_ast::right.
Referenced by free_ast(), and loop_cleanup().
void free_env_list | ( | t_env * | env | ) |
Definition at line 37 of file clean.c.
References s_env::key, s_env::next, and s_env::value.
void free_ms_data | ( | t_ms_data * | data | ) |
Definition at line 51 of file clean.c.
References s_ms_data::current_dir, s_ms_data::envp, free_shell_var_list(), s_ms_data::shell_variables, s_ms_data::std_err, s_ms_data::std_in, and s_ms_data::std_out.
Referenced by cleanup_exit_resources(), and main().
void loop_cleanup | ( | t_loop_data * | loop_data, |
t_token * | tokens_head | ||
) |
Definition at line 67 of file clean.c.
References free_all_tokens(), free_ast(), s_loop_data::tree, and s_loop_data::trimmed_input.
Referenced by process_command().