/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* exec_ampersand.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/10 16:01:30 by jhalford #+# #+# */ /* Updated: 2016/12/10 16:53:06 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "exec.h" int exec_ampersand(t_btree **ast, t_data *data) { data->exec.amp = 1; ft_exec(&(*ast)->left, data); data->exec.amp = 0; ft_exec(&(*ast)->right, data); btree_delone(ast, &ast_free); return (0); }