From 00bce5ad1d5ac92d20617a9eb2647365bf87cab2 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 9 Oct 2020 16:13:50 +0200 Subject: Splitting preprocessing, Added parsed error helper --- src/eval/eval.c | 4 ++-- src/eval/operation.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/eval') diff --git a/src/eval/eval.c b/src/eval/eval.c index 0df8b85..032fc30 100644 --- a/src/eval/eval.c +++ b/src/eval/eval.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/09/13 20:38:06 by charles #+# #+# */ -/* Updated: 2020/10/09 14:03:31 by cacharle ### ########.fr */ +/* Updated: 2020/10/09 16:12:27 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -64,7 +64,7 @@ int eval(int fds[2], t_env env, t_ast *ast) if (ast->tag == AST_CMD) return (eval_cmd(fds, env, ast)); if (ast->tag == AST_PIPELINE) - return (eval_pipeline(fds, env, ast)); + return (eval_pipeline(env, ast)); if (ast->tag == AST_PARENT) return (eval_parenthesis(fds, env, ast)); return (EVAL_FATAL); diff --git a/src/eval/operation.c b/src/eval/operation.c index 19ecec7..f1daa0b 100644 --- a/src/eval/operation.c +++ b/src/eval/operation.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/06/17 15:27:22 by charles #+# #+# */ -/* Updated: 2020/10/09 14:54:43 by cacharle ### ########.fr */ +/* Updated: 2020/10/09 16:12:14 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -62,7 +62,7 @@ static int st_run_piped( return (pid); } -int eval_pipeline(int fds[2], t_env env, t_ast *ast) +int eval_pipeline(t_env env, t_ast *ast) { t_ftlst *curr; int pipes[3]; -- cgit