maxishell
Implementation of a shell for Linux-like systems
|
#include "tokens.h"
Go to the source code of this file.
Functions | |
char * | ev_loop (char **start, t_ms_data *data, char *str_start, char *expanded_str) |
char * | expand_variable (char **start, t_ms_data *data) |
void | handle_local_vars (t_ms_data *data, char *arg) |
char ** | ft_add_segment (char **result, char *start, size_t length, int *count) |
char ** | ft_split_preserve_quotes (char *str, char delimiter) |
char * ev_loop | ( | char ** | start, |
t_ms_data * | data, | ||
char * | str_start, | ||
char * | expanded_str | ||
) |
Definition at line 15 of file loc_env_var_handler_utils.c.
References expand_env_and_loc_var(), ft_isalnum(), ft_strjoin_free(), and ft_substr().
Referenced by expand_variable().
char * expand_variable | ( | char ** | start, |
t_ms_data * | data | ||
) |
Definition at line 40 of file loc_env_var_handler_utils.c.
References ev_loop(), ft_strdup(), ft_strjoin_free(), ft_substr(), and str_start_adj().
Referenced by process_argument(), and process_single_token().
char ** ft_add_segment | ( | char ** | result, |
char * | start, | ||
size_t | length, | ||
int * | count | ||
) |
Definition at line 91 of file loc_env_var_handler_utils.c.
References ft_strndup().
Referenced by add_segment_on_delimiter(), and ft_split_preserve_quotes().
char ** ft_split_preserve_quotes | ( | char * | str, |
char | delimiter | ||
) |
Definition at line 99 of file loc_env_var_handler_utils.c.
References add_segment_on_delimiter(), finalize_result_array(), ft_add_segment(), initialize_result_array(), and toggle_quotes().
Referenced by split_loc_vars().
void handle_local_vars | ( | t_ms_data * | data, |
char * | arg | ||
) |
Definition at line 69 of file loc_env_var_handler_utils.c.
References ft_isalnum(), ft_strchr(), handle_add_set_shell_variable(), and s_ms_data::shell_variables.
Referenced by post_process_command_args().