aboutsummaryrefslogtreecommitdiff
path: root/include/eval.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-10 15:08:28 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-10 15:08:28 +0200
commitb16d4b834d95d5cc0757d09e74fe6042e55f5440 (patch)
treeaa64f6d4397a0c55337224c8cf474da73750ac30 /include/eval.h
parent10b54ed457ec0999e9289811401907d3a88970dc (diff)
downloadminishell-b16d4b834d95d5cc0757d09e74fe6042e55f5440.tar.gz
minishell-b16d4b834d95d5cc0757d09e74fe6042e55f5440.tar.bz2
minishell-b16d4b834d95d5cc0757d09e74fe6042e55f5440.zip
Added better error handling in eval
Diffstat (limited to 'include/eval.h')
-rw-r--r--include/eval.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/eval.h b/include/eval.h
index a23b249..7139f34 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/09 17:27:21 by charles ### ########.fr */
+/* Updated: 2020/09/10 14:14:56 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -39,9 +39,9 @@ typedef struct
t_builtin_entry *builtin;
} t_fork_param_cmd;
-# define MS_NO_FD -2
-# define FDS_WRITE 1
-# define FDS_READ 0
+# define FD_NONE -2
+# define FD_WRITE 1
+# define FD_READ 0
extern pid_t g_child_pid;
@@ -64,7 +64,7 @@ t_ftlst *split_token(t_ftlst **lst, enum e_tok);
** redir.c
*/
-bool redir_extract(t_tok_lst **redirs, t_env env, int fds[2]);
+int redir_extract(t_tok_lst **redirs, t_env env, int fds[2]);
/*
** exec.c