42-archive/42sh/src/exec/pset_until.c
2017-03-20 16:27:46 +01:00

21 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pset_until.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/20 16:26:43 by gwojda #+# #+# */
/* Updated: 2017/03/20 16:26:44 by gwojda ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int pset_until(t_process *p, t_btree *ast)
{
p->data.d_while.condition = btree_map(ast->left, &node_copy);
p->data.d_while.content = btree_map(ast->right, &node_copy);
p->type = PROCESS_UNTIL;
return (0);
}