/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* set_process_case.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: wescande +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/07 20:36:04 by wescande #+# #+# */ /* Updated: 2017/03/08 01:49:48 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ #include "minishell.h" int set_process_case(t_process *p, t_btree *ast, t_cmd *cmd) { (void)cmd; p->data.d_case.list_word = ft_ld_copy(((t_astnode *)ast->item)->data.cmd.wordlist, tab_esc_copy); p->data.d_case.content = btree_map(ast->right, &node_copy); p->type = PROCESS_CASE; return (0); }