i think i never speedran the norm like this before

This commit is contained in:
mdev9
2024-04-18 21:50:23 +02:00
parent 5da5968deb
commit fb62d4ceed
32 changed files with 169 additions and 158 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:22:15 by marde-vr #+# #+# */
/* Updated: 2024/04/17 18:29:07 by tomoron ### ########.fr */
/* Updated: 2024/04/18 20:48:51 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -60,17 +60,17 @@ char **get_cmd_args(t_msh *msh)
void remove_command_from_msh(t_msh *msh)
{
t_cmd *tmp;
t_cmd *tmp;
free_token(msh->tokens);
while(msh->cmds && !is_cmd_type(msh->cmds))
while (msh->cmds && !is_cmd_type(msh->cmds))
msh->cmds = msh->cmds->next;
while(msh->cmds && is_cmd_type(msh->cmds))
while (msh->cmds && is_cmd_type(msh->cmds))
msh->cmds = msh->cmds->next;
tmp = msh->cmds;
while(tmp && !is_cmd_type(tmp))
while (tmp && !is_cmd_type(tmp))
tmp = tmp->next;
if(tmp)
if (tmp)
msh->tokens = parse_command(tmp->value, msh->env);
else
msh->tokens = 0;