good code

This commit is contained in:
ariard@student.42.fr 2017-02-24 19:32:45 +01:00
parent 0461285d95
commit a3c750494f

View file

@ -6,7 +6,7 @@
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/15 20:49:15 by ariard #+# #+# */
/* Updated: 2017/02/24 19:29:04 by ariard ### ########.fr */
/* Updated: 2017/02/24 19:31:18 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
@ -19,10 +19,10 @@ int add_cmd(t_btree **ast, t_list **lst)
char **my_tab;
DG("add cmd");
if (!*ast)
gen_node(ast);
else if ((token = (*lst)->content)->type == TK_IN)
if ((token = (*lst)->content)->type == TK_IN)
return (0);
else if (!*ast)
gen_node(ast);
else if (isdir(ast))
return (add_file(ast, lst));
else if (isloop(ast, lst) == 3)