From 95a16d2d88c8628ab0ae76f3ae04dfebee566950 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 27 Aug 2020 19:13:28 +0200 Subject: Fising tok_lst_new uninitialized next, Added tok_lst_debug, Fixing parse_cmd --- include/minishell.h | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'include/minishell.h') diff --git a/include/minishell.h b/include/minishell.h index 1b23952..4bcd681 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ -/* Updated: 2020/08/27 17:18:43 by charles ### ########.fr */ +/* Updated: 2020/08/27 20:34:44 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -38,6 +38,7 @@ # include "libft_dstr.h" # include "lexer.h" +# include "error.h" /* ** \brief Value of pipe entry if closed @@ -112,23 +113,6 @@ int builtin_exit(char **argv, t_env env); char **preprocess(t_tok_lst **tokens, t_env env); char *preprocess_filename(t_tok_lst **tokens, t_env env); -/* -** error.c -*/ - -typedef enum -{ - ERR_FATAL = -1, - ERR_NONE = 0, - ERR_AMBIGUOUS_REDIR = 1, - ERR_OPEN = 1, - ERR_CMD_NOT_FOUND = 127, - ERR_SYNTAX = 2, -} t_err; - -void errorf(const char *format, ...); -void verrorf(const char *format, va_list ap); - /* ** signal.c */ -- cgit