aboutsummaryrefslogtreecommitdiff
path: root/include/eval.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-15 12:39:56 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-15 12:39:56 +0200
commit11a719bab26b3ccccbd219decab2d0cf77021004 (patch)
tree6629ec00d8ac3054f0daa906e3fd06092bef4b32 /include/eval.h
parentec9177a513d1fdd510abcb70a9640d1bd94023f5 (diff)
downloadminishell-11a719bab26b3ccccbd219decab2d0cf77021004.tar.gz
minishell-11a719bab26b3ccccbd219decab2d0cf77021004.tar.bz2
minishell-11a719bab26b3ccccbd219decab2d0cf77021004.zip
Refactoring redirection out of eval/cmd.c, Added tag check shortcut
Diffstat (limited to 'include/eval.h')
-rw-r--r--include/eval.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/eval.h b/include/eval.h
index 3ba7527..f834d45 100644
--- a/include/eval.h
+++ b/include/eval.h
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/01 17:05:30 by charles #+# #+# */
-/* Updated: 2020/06/15 10:31:06 by charles ### ########.fr */
+/* Updated: 2020/06/15 11:09:49 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -57,6 +57,8 @@ typedef struct
t_builtin_func builtin;
} t_fork_param_cmd;
+#define MS_NO_FD -2
+
/*
** eval.c
*/
@@ -97,6 +99,12 @@ void error_eval_put(enum e_error id, char *unexpected);
** cmd.c
*/
-int eval_cmd(t_env env, t_path path, t_ast *ast);
+int eval_cmd(t_env env, t_path path, t_ast *ast);
+
+/*
+** redir.c
+*/
+
+bool redir_extract(t_ftlst *redirs, t_env env, int *fd_in, int *fd_out);
#endif