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/error.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 include/error.h (limited to 'include/error.h') diff --git a/include/error.h b/include/error.h new file mode 100644 index 0000000..941f1b2 --- /dev/null +++ b/include/error.h @@ -0,0 +1,36 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* error.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/08/27 20:34:25 by charles #+# #+# */ +/* Updated: 2020/08/27 20:38:52 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef ERROR_H +# define ERROR_H + +# include +# include "libft_io.h" + +/* +** 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); + +#endif -- cgit