modified cmds to tokens

This commit is contained in:
mdev9
2024-04-01 13:59:34 +02:00
parent e05465348d
commit 7d1fba69a9
10 changed files with 53 additions and 53 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/03/30 17:15:14 by marde-vr ### ########.fr */
/* Updated: 2024/04/01 13:24:39 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -68,8 +68,7 @@ typedef struct s_env
typedef struct s_msh
{
t_env *env;
t_cmd *cmds;
t_token *tokens;
t_token *cmds;
int **fds;
int *pids;
t_token_type in_type;
@ -116,10 +115,10 @@ void print_parsed_token(t_token *cmd);//debug
int get_var_name_len(char *command);
void handle_minishellrc(t_msh *msh);
char *get_tmp_file_name(t_msh *msh);
int get_args_count(t_cmd *cmds);
int get_args_count(t_token *cmds);
char **env_to_char_tab(t_env *env);
void print_parsed_cmd(t_cmd *cmd);//debug
int get_cmd_count(t_cmd *cmds);
int get_cmd_count(t_token *cmds);
int first_is_in_type(t_msh *msh);
int contains_newline(char *str);
int check_var_name(char *name);