/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* set_process_while.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: wescande +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/07 19:38:10 by wescande #+# #+# */ /* Updated: 2017/03/08 01:51:38 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ #include "minishell.h" int set_process_while(t_process *p, t_btree *ast, t_cmd *cmd) { (void)cmd; 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_WHILE; return (0); }