aboutsummaryrefslogtreecommitdiff
path: root/include/minishell.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-08-27 19:13:28 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-08-27 21:13:39 +0200
commit95a16d2d88c8628ab0ae76f3ae04dfebee566950 (patch)
treefb8ca171c2ce4fa91a294526764f579f1a7343f3 /include/minishell.h
parenta680cf09a3fa4b7c6adc38e4297ee5535172826b (diff)
downloadminishell-95a16d2d88c8628ab0ae76f3ae04dfebee566950.tar.gz
minishell-95a16d2d88c8628ab0ae76f3ae04dfebee566950.tar.bz2
minishell-95a16d2d88c8628ab0ae76f3ae04dfebee566950.zip
Fising tok_lst_new uninitialized next, Added tok_lst_debug, Fixing parse_cmd
Diffstat (limited to 'include/minishell.h')
-rw-r--r--include/minishell.h20
1 files changed, 2 insertions, 18 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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
@@ -113,23 +114,6 @@ 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
*/