aboutsummaryrefslogtreecommitdiff
path: root/include/eval.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-13 21:01:18 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-13 21:01:18 +0200
commitc51d31b8b751585153500729c25ae2f02d179e45 (patch)
treeeab34e14508f5a2a3ad2c5d06c56afdd7ba72e9e /include/eval.h
parent490237aece240c05b5a9035665a88327e1be87ed (diff)
downloadminishell-c51d31b8b751585153500729c25ae2f02d179e45.tar.gz
minishell-c51d31b8b751585153500729c25ae2f02d179e45.tar.bz2
minishell-c51d31b8b751585153500729c25ae2f02d179e45.zip
Refactoring eval file structure, Added comment to builtin
Diffstat (limited to 'include/eval.h')
-rw-r--r--include/eval.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/include/eval.h b/include/eval.h
index 3d7436f..1633464 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/13 14:20:17 by charles ### ########.fr */
+/* Updated: 2020/09/13 20:56:29 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -45,22 +45,31 @@ typedef struct
extern pid_t g_child_pid;
/*
-** op.c
+** eval.c
*/
-int eval_op(int fds[2], t_env env, t_path path, t_ast *ast);
+int fork_wrap(int fds[2], void *passed, int (*wrapped)(void *param), pid_t *child_pid);
int eval(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid);
-int eval_forked(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid);
/*
** cmd.c
*/
-int fork_wrap(int fds[2], void *passed, int (*wrapped)(void *param), pid_t *child_pid);
-int fork_wrap_wait(int fds[2], void *passed, int (*wrapped)(void *param));
int eval_cmd(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid);
/*
+** operation.c
+*/
+
+int eval_operation(int fds[2], t_env env, t_path path, t_ast *ast);
+
+/*
+** parenthesis.c
+*/
+
+int eval_parenthesis(int fds[2], t_env env, t_path path, t_ast *ast);
+
+/*
** redir.c
*/