AAAAAAAAAAAAAAAAAAAAAAAAAAA j'ai pas les variables d'environnement

This commit is contained in:
2024-05-04 14:33:30 +02:00
parent fb0ebc2398
commit ef3915c640
3 changed files with 81 additions and 29 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/04 17:31:38 by tomoron #+# #+# */
/* Updated: 2024/05/03 14:16:24 by tomoron ### ########.fr */
/* Updated: 2024/05/04 14:11:35 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -81,7 +81,7 @@ typedef struct s_msh
extern int g_return_code;
int get_in_type(t_msh *msh, t_cmd *t_strt, t_cmd *tokens, int here_doc);
int add_var_to_str(char *res, char **command, t_env *env, int *is_var);
int add_var_to_str(char *res, char **command, t_env *env);
t_env *export_set_env(t_env *env, char *name, char *value, int append);
void parent(t_msh *msh, int i, int cmd_count, char **cmd_args);
t_token *expand_wildcards(t_token *res, char *value, int is_var);
@ -115,7 +115,8 @@ char *ft_get_env(t_env *env, char *var_name);
int get_out_type(t_msh *msh, t_cmd *cmds);
void handle_here_doc(t_msh *msh, char *eof);
void signal_handler_interactive(int signum);
int get_token_len(char *cmd, t_env *env);
int get_token_len(char *cmd);
int get_var_len(char **command, t_env *env);
void signal_handler_here_doc(int signum);
t_token *parsing_syntax_error(t_token *res);
int file_access(t_msh *msh, int *found);