diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-06 17:23:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-06 17:23:23 +0200 |
| commit | 89bd998bcf0839a83daf16ab9b1e8ae568a8a9f2 (patch) | |
| tree | 84627975d6a6379f5a56b31eeaee90f55a231d1d /include/eval.h | |
| parent | fc862343cc5d0c305811fe23311084ae3702ed42 (diff) | |
| download | minishell-89bd998bcf0839a83daf16ab9b1e8ae568a8a9f2.tar.gz minishell-89bd998bcf0839a83daf16ab9b1e8ae568a8a9f2.tar.bz2 minishell-89bd998bcf0839a83daf16ab9b1e8ae568a8a9f2.zip | |
Removing previous pipe bloat
Diffstat (limited to 'include/eval.h')
| -rw-r--r-- | include/eval.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/eval.h b/include/eval.h index 819b3cc..2aa4f1d 100644 --- a/include/eval.h +++ b/include/eval.h @@ -6,7 +6,7 @@ /* By: charles <charles@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:05:30 by charles #+# #+# */ -/* Updated: 2020/09/15 20:09:27 by charles ### ########.fr */ +/* Updated: 2020/10/06 17:22:12 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -49,26 +49,27 @@ extern pid_t g_child_pid; ** eval.c */ -int fork_wrap(int fds[2], void *passed, t_wrapped_func wrapped, pid_t *child_pid, int fd_to_close); -int eval(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close); +int fork_wrap(int fds[2], void *passed, t_wrapped_func wrapped); +int eval(int fds[2], t_env env, t_ast *ast); /* ** cmd.c */ -int eval_cmd(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close); +int eval_cmd(int fds[2], t_env env, t_ast *ast); /* ** operation.c */ int eval_operation(int fds[2], t_env env, t_ast *ast); +int eval_pipeline(int fds[2], t_env env, t_ast *ast); /* ** parenthesis.c */ -int eval_parenthesis(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close); +int eval_parenthesis(int fds[2], t_env env, t_ast *ast); /* ** redir.c |
