From 487a66394061f2d14a2fa421302966b5442d643f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 27 Jul 2020 18:55:07 +0200 Subject: I couldn't see shit --- src/d_define.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/d_define.h (limited to 'src/d_define.h') diff --git a/src/d_define.h b/src/d_define.h new file mode 100644 index 0000000..175e256 --- /dev/null +++ b/src/d_define.h @@ -0,0 +1,49 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* d_define.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef D_DEFINE_H +#define D_DEFINE_H + +#include "d_enum.h" + +/* +** ====== CLASSICS ====== +*/ + +#define FT_PS_ONE "minishell ~> " +#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type" +#define FT_BUILTINS_COUNT 8 +#define FT_HISTFILE "minishell_history" + +/* +** ====== OPTIONS ====== +*/ + +#define FT_OPT_INTERACT "-i" +#define FT_OPT_COMMAND "-c" + +/* +** ====== VARS ====== +*/ + +#define FT_ZER_VAR "$0" +#define FT_RET_VAR "$?" +#define FT_PID_VAR "$$" + +/* +** ====== FAIL MSG ====== +*/ + +#define FT_FAIL_NO_OPTIONS "no options required" +#define FT_FAIL_TOO_MANY_ARGS "too many arguments" + +#endif -- cgit v1.2.3