diff options
Diffstat (limited to 'include/eval.h')
| -rw-r--r-- | include/eval.h | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/include/eval.h b/include/eval.h index 38671aa..261e1a2 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/07/13 09:54:40 by charles ### ########.fr */ +/* Updated: 2020/07/14 09:35:17 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -48,30 +48,8 @@ extern pid_t g_child_pid; ** op.c */ -int eval_op(int fds[2], t_env env, t_path path, t_ast *ast); -int eval(int fds[2], t_env env, t_path path, t_ast *ast); - -enum e_error -{ - ERROR_AMBIGUOUS_REDIR, - ERROR_OPEN, - ERROR_CMD_NOT_FOUND, - ERROR_SYNTAX, -}; - -typedef struct -{ - enum e_error id; - int status; - char *msg; // if NULL call strerror - // char *basename; -} t_error; - -/* -** error.c -*/ - -void error_eval_put(enum e_error id, char *unexpected); +int eval_op(int fds[2], t_env env, t_path path, t_ast *ast); +int eval(int fds[2], t_env env, t_path path, t_ast *ast); /* ** cmd.c @@ -90,8 +68,8 @@ bool redir_extract(t_ftlst *redirs, t_env env, int fds[2]); ** exec.c */ -bool exec_is_path(char *exec_name); -bool exec_is_valid(char *exec_path); -char *exec_search_path(t_path path, char *path_var, char *exec_name); +bool exec_is_path(char *exec_name); +bool exec_is_valid(char *exec_path); +char *exec_search_path(t_path path, char *path_var, char *exec_name); #endif |
