t_cmd => t_token (parce que c'est plus logique aussi)

This commit is contained in:
2024-03-27 16:23:09 +01:00
parent 7ea57084dd
commit a9fde3bad1
11 changed files with 55 additions and 54 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 19:10:52 by marde-vr #+# #+# */
/* Updated: 2024/03/27 14:58:29 by tomoron ### ########.fr */
/* Updated: 2024/03/27 16:21:56 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -26,7 +26,7 @@ void redirect_output(t_msh *msh, int i)
}
}
void open_out_file(t_msh *msh, t_cmd **cur_cmd)
void open_out_file(t_msh *msh, t_token **cur_cmd)
{
msh->out_type = (*cur_cmd)->type;
if (msh->out_type == RED_O)
@ -51,9 +51,9 @@ void open_out_file(t_msh *msh, t_cmd **cur_cmd)
}
}
void get_out_type(t_msh *msh, t_cmd *cmds)
void get_out_type(t_msh *msh, t_token *cmds)
{
t_cmd *cur_cmd;
t_token *cur_cmd;
msh->out_type = ARG;
msh->out_fd = 0;