maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
void | handle_local_vars (t_ms_data *data, char *arg) |
char * | process_argument (char *arg, t_ms_data *data) |
void | handle_split_allocation (t_ast *command_node, int *current_size, int required_size) |
void | split_loc_vars (t_ast *command_node, char *processed_arg, int *current_size, int *i) |
void | post_process_command_args (t_ast *command_node, int arg_count, t_ms_data *data) |
char * | append_expanded_var (char *processed_arg, char *tmp_ad, char *expanded_var) |
char * append_expanded_var | ( | char * | processed_arg, |
char * | tmp_ad, | ||
char * | expanded_var | ||
) |
Definition at line 90 of file loc_env_var_handler.c.
References ft_strdup(), ft_strjoin_free(), and tmp_adj().
Referenced by process_argument().
void handle_local_vars | ( | t_ms_data * | data, |
char * | arg | ||
) |
Definition at line 69 of file loc_env_var_handler_utils.c.
Referenced by post_process_command_args().
void handle_split_allocation | ( | t_ast * | command_node, |
int * | current_size, | ||
int | required_size | ||
) |
Definition at line 19 of file loc_env_var_handler.c.
References s_ast::args, and ft_realloc_array().
Referenced by split_loc_vars().
Definition at line 60 of file loc_env_var_handler.c.
References s_ast::args, ft_remove_quotes(), ft_strlen(), ft_substr(), handle_local_vars(), is_in_single_quotes(), process_argument(), and split_loc_vars().
Referenced by manage_commands().
char * process_argument | ( | char * | arg, |
t_ms_data * | data | ||
) |
Definition at line 104 of file loc_env_var_handler.c.
References append_expanded_var(), append_literal(), expand_variable(), and ft_strdup().
Referenced by post_process_command_args().
void split_loc_vars | ( | t_ast * | command_node, |
char * | processed_arg, | ||
int * | current_size, | ||
int * | i | ||
) |
Definition at line 30 of file loc_env_var_handler.c.
References s_ast::args, ft_free_2d_arr(), ft_len_2d_arr(), ft_split_preserve_quotes(), ft_strdup(), and handle_split_allocation().
Referenced by post_process_command_args().