From 06c7d44c1a208f401e55a41f8cb9dbd217386f99 Mon Sep 17 00:00:00 2001 From: gwojda Date: Wed, 29 Mar 2017 16:04:44 +0200 Subject: [PATCH] norme --- 42sh/src/parser/build_tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/42sh/src/parser/build_tree.c b/42sh/src/parser/build_tree.c index 430eec61..f10c604d 100644 --- a/42sh/src/parser/build_tree.c +++ b/42sh/src/parser/build_tree.c @@ -6,7 +6,7 @@ /* By: ariard +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/15 18:32:59 by ariard #+# #+# */ -/* Updated: 2017/03/29 15:40:57 by ariard ### ########.fr */ +/* Updated: 2017/03/29 16:04:00 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -77,10 +77,9 @@ static int check_cache(t_token *token, int cache) return (0); } -int build_tree(t_btree **ast, t_list **lst, t_parser *parser) +int build_tree(t_btree **ast, t_list **lst, t_parser *parser) { int i; -// static int cache; t_token *token; i = 0; @@ -88,7 +87,8 @@ int build_tree(t_btree **ast, t_list **lst, t_parser *parser) check_cache(token, parser->cache); while (g_treematch[i].type) { - if ((isseparator(token, parser->cache) && g_treematch[i].type == token->type)) + if ((isseparator(token, parser->cache) && + g_treematch[i].type == token->type)) { parser->cache = token->type; return (g_treematch[i].add(ast, lst));