diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 18:55:07 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 18:55:07 +0200 |
commit | 487a66394061f2d14a2fa421302966b5442d643f (patch) | |
tree | 34237d4e9cb85f94bcefd46f399d2224dff3f6b3 /src/d_define.h | |
parent | Correct shell prompt (diff) | |
download | 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.gz 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.bz2 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.xz 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.zst 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.zip |
I couldn't see shit
Diffstat (limited to 'src/d_define.h')
-rw-r--r-- | src/d_define.h | 49 |
1 files changed, 49 insertions, 0 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* 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 |