summaryrefslogtreecommitdiffstats
path: root/src/d_define.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:39:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:39:11 +0200
commit64364316125af2831cf448cc27bcbfc531e9c271 (patch)
tree73a7213d11627ac8dc1490070e6bafd5c7b55932 /src/d_define.h
parentNormed d_define (diff)
download42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.gz
42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.bz2
42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.xz
42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.zst
42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.zip
Names update
Diffstat (limited to 'src/d_define.h')
-rw-r--r--src/d_define.h89
1 files changed, 44 insertions, 45 deletions
diff --git a/src/d_define.h b/src/d_define.h
index 05332d9..23b3964 100644
--- a/src/d_define.h
+++ b/src/d_define.h
@@ -26,41 +26,38 @@
** ====== PSX ======
*/
-# define FT_DEFAULT_PS_ONE "minishell ~> "
-# define FT_DEFAULT_PS_TWO "> "
-# define FT_DEFAULT_PS_THR "> "
-# define FT_DEFAULT_PS_FOU "> "
+# define M_DEFAULT_PS_ONE "minishell ~> "
+# define M_DEFAULT_PS_TWO "> "
+# define M_DEFAULT_PS_THR "> "
+# define M_DEFAULT_PS_FOU "> "
/*
** ====== PSX RICE ======
*/
-# define FT_PROGNAME "minishell"
-# define FT_MSH_VERSION "0.1"
+# define M_PROGNAME "minishell"
+# define M_MSH_VERSION "0.1"
/*
** ====== OPTIONS ======
*/
-# define FT_OPT_COMMAND "-c"
-# define FT_OPT_INTERACT "-i"
+# define M_OPT_COMMAND "-c"
+# define M_OPT_INTERACT "-i"
/*
** ====== VARS ======
*/
-# define FT_RET_VAR "$?"
-# define FT_PID_VAR "$$"
-# define FT_ARGC_VAR "$#"
+# define M_RET_VAR "$?"
+# define M_ARGC_VAR "$#"
/*
-** ====== FAIL MSG ======
+** ====== FILES ======
*/
-# 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 M_MINISHELLRC ".minishellrc"
+# define M_DEFAULT_HISTFILE ".minishell_history"
/*
** ====== UTILS ======
@@ -84,40 +81,42 @@
# define C_TILDE 0x7e
/*
-** ====== FILES ======
+** ====== SQB OPTIONS ======
*/
-# define FT_MINISHELLRC ".minishellrc"
-# define FT_DEFAULT_HISTFILE ".minishell_history"
+# define B_SQB_B "-b"
+# define B_SQB_C "-c"
+# define B_SQB_D "-d"
+# define B_SQB_E "-e"
+# define B_SQB_F "-f"
+# define B_SQB_H "-h"
+# define B_SQB_N "-n"
+# define B_SQB_P "-p"
+# define B_SQB_R "-r"
+# define B_SQB_S "-s"
+# define B_SQB_W "-w"
+# define B_SQB_X "-x"
+# define B_SQB_Z "-z"
+# define B_SQB_L_MAJ "-L"
+# define B_SQB_S_MAJ "-S"
+# define B_SQB_NT "-nt"
+# define B_SQB_OT "-ot"
+# define B_SQB_EQUA "="
+# define B_SQB_DIFF "!="
+# define B_SQB_EQ "-eq"
+# define B_SQB_NE "-ne"
+# define B_SQB_GT "-gt"
+# define B_SQB_GE "-ge"
+# define B_SQB_LT "-lt"
+# define B_SQB_LE "-le"
/*
-** ====== SQB OPTIONS ======
+** ====== FAIL MSG ======
*/
-# 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 F_COMMAND_NOT_FOUND "command not found"
+# define F_NO_OPTIONS "no options required"
+# define F_TOO_MANY_ARGS "too many arguments"
+# define F_HOME_NOT_SET "HOME not set"
#endif