t_cmd => t_token (parce que c'est plus logique aussi)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user