summaryrefslogtreecommitdiffstats
path: root/src/d_define.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:30:46 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:30:46 +0200
commit3d98df9f1ef58ebfd4e77199785dbebeb941a0d4 (patch)
treec8616c45cc3b4535b18874c0ac690e3c8aef5f94 /src/d_define.h
parentNormed b_unset (diff)
download42-minishell-3d98df9f1ef58ebfd4e77199785dbebeb941a0d4.tar.gz
42-minishell-3d98df9f1ef58ebfd4e77199785dbebeb941a0d4.tar.bz2
42-minishell-3d98df9f1ef58ebfd4e77199785dbebeb941a0d4.tar.xz
42-minishell-3d98df9f1ef58ebfd4e77199785dbebeb941a0d4.tar.zst
42-minishell-3d98df9f1ef58ebfd4e77199785dbebeb941a0d4.zip
Normed d_define
Diffstat (limited to '')
-rw-r--r--src/d_define.h126
1 files changed, 63 insertions, 63 deletions
diff --git a/src/d_define.h b/src/d_define.h
index cc64a83..05332d9 100644
--- a/src/d_define.h
+++ b/src/d_define.h
@@ -10,114 +10,114 @@
/* */
/* ************************************************************************** */
-#ifndef D_DEFINE_H
-#define D_DEFINE_H
+#ifndef FT_D_DEFINE_H
+# define FT_D_DEFINE_H
-#include "d_enum.h"
+# include "d_enum.h"
/*
** ====== CLASSICS ======
*/
-#define M_BUILTINS_REF "echo:cd:pwd:export:unset:env:exit:type:[:alias:h"
-#define M_BUILTINS_REF_LEN 49
+# define M_BUILTINS_REF "echo:cd:pwd:export:unset:env:exit:type:[:alias:h"
+# define M_BUILTINS_REF_LEN 49
/*
** ====== PSX ======
*/
-#define FT_DEFAULT_PS_ONE "minishell ~> "
-#define FT_DEFAULT_PS_TWO "> "
-#define FT_DEFAULT_PS_THR "> "
-#define FT_DEFAULT_PS_FOU "> "
+# define FT_DEFAULT_PS_ONE "minishell ~> "
+# define FT_DEFAULT_PS_TWO "> "
+# define FT_DEFAULT_PS_THR "> "
+# define FT_DEFAULT_PS_FOU "> "
/*
** ====== PSX RICE ======
*/
-#define FT_PROGNAME "minishell"
-#define FT_MSH_VERSION "0.1"
+# define FT_PROGNAME "minishell"
+# define FT_MSH_VERSION "0.1"
/*
** ====== OPTIONS ======
*/
-#define FT_OPT_INTERACT "-i"
-#define FT_OPT_COMMAND "-c"
+# define FT_OPT_COMMAND "-c"
+# define FT_OPT_INTERACT "-i"
/*
** ====== VARS ======
*/
-#define FT_RET_VAR "$?"
-#define FT_PID_VAR "$$"
-#define FT_ARGC_VAR "$#"
+# define FT_RET_VAR "$?"
+# define FT_PID_VAR "$$"
+# define FT_ARGC_VAR "$#"
/*
** ====== FAIL MSG ======
*/
-#define FT_FAIL_COMMAND_NOT_FOUND "command not found"
-#define FT_FAIL_NO_OPTIONS "no options required"
-#define FT_FAIL_TOO_MANY_ARGS "too many arguments"
-#define FT_FAIL_HOME_NOT_SET "HOME not set"
+# define FT_FAIL_COMMAND_NOT_FOUND "command not found"
+# define FT_FAIL_NO_OPTIONS "no options required"
+# define FT_FAIL_TOO_MANY_ARGS "too many arguments"
+# define FT_FAIL_HOME_NOT_SET "HOME not set"
/*
** ====== UTILS ======
*/
-#define C_NUL 0x00
-#define C_LF 0x0a
-#define C_HT 0x09
-#define C_SUB 0x1a
-#define C_ESC 0x1b
-#define C_DQUOTE 0x22
-#define C_SHARP 0x23
-#define C_DOLLAR 0x24
-#define C_SQUOTE 0x27
-#define C_AMP 0x26
-#define C_PLUS 0x2b
-#define C_SEMIC 0x3b
-#define C_EQUALS 0x3d
-#define C_BACKS 0x5c
-#define C_PIPE 0x7c
-#define C_TILDE 0x7e
+# define C_NUL 0x00
+# define C_LF 0x0a
+# define C_HT 0x09
+# define C_SUB 0x1a
+# define C_ESC 0x1b
+# define C_DQUOTE 0x22
+# define C_SHARP 0x23
+# define C_DOLLAR 0x24
+# define C_SQUOTE 0x27
+# define C_AMP 0x26
+# define C_PLUS 0x2b
+# define C_SEMIC 0x3b
+# define C_EQUALS 0x3d
+# define C_BACKS 0x5c
+# define C_PIPE 0x7c
+# define C_TILDE 0x7e
/*
** ====== FILES ======
*/
-#define FT_MINISHELLRC ".minishellrc"
-#define FT_DEFAULT_HISTFILE ".minishell_history"
+# define FT_MINISHELLRC ".minishellrc"
+# define FT_DEFAULT_HISTFILE ".minishell_history"
/*
** ====== SQB OPTIONS ======
*/
-#define FT_SQB_B "-b"
-#define FT_SQB_C "-c"
-#define FT_SQB_D "-d"
-#define FT_SQB_E "-e"
-#define FT_SQB_F "-f"
-#define FT_SQB_H "-h"
-#define FT_SQB_N "-n"
-#define FT_SQB_P "-p"
-#define FT_SQB_R "-r"
-#define FT_SQB_S "-s"
-#define FT_SQB_W "-w"
-#define FT_SQB_X "-x"
-#define FT_SQB_Z "-z"
-#define FT_SQB_L_MAJ "-L"
-#define FT_SQB_S_MAJ "-S"
-#define FT_SQB_NT "-nt"
-#define FT_SQB_OT "-ot"
-#define FT_SQB_EQUA "="
-#define FT_SQB_DIFF "!="
-#define FT_SQB_EQ "-eq"
-#define FT_SQB_NE "-ne"
-#define FT_SQB_GT "-gt"
-#define FT_SQB_GE "-ge"
-#define FT_SQB_LT "-lt"
-#define FT_SQB_LE "-le"
+# define FT_SQB_B "-b"
+# define FT_SQB_C "-c"
+# define FT_SQB_D "-d"
+# define FT_SQB_E "-e"
+# define FT_SQB_F "-f"
+# define FT_SQB_H "-h"
+# define FT_SQB_N "-n"
+# define FT_SQB_P "-p"
+# define FT_SQB_R "-r"
+# define FT_SQB_S "-s"
+# define FT_SQB_W "-w"
+# define FT_SQB_X "-x"
+# define FT_SQB_Z "-z"
+# define FT_SQB_L_MAJ "-L"
+# define FT_SQB_S_MAJ "-S"
+# define FT_SQB_NT "-nt"
+# define FT_SQB_OT "-ot"
+# define FT_SQB_EQUA "="
+# define FT_SQB_DIFF "!="
+# define FT_SQB_EQ "-eq"
+# define FT_SQB_NE "-ne"
+# define FT_SQB_GT "-gt"
+# define FT_SQB_GE "-ge"
+# define FT_SQB_LT "-lt"
+# define FT_SQB_LE "-le"
#endif