summaryrefslogtreecommitdiffstats
path: root/src/d_define.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/d_define.h')
-rw-r--r--src/d_define.h52
1 files changed, 51 insertions, 1 deletions
diff --git a/src/d_define.h b/src/d_define.h
index 9042037..f5dd32e 100644
--- a/src/d_define.h
+++ b/src/d_define.h
@@ -19,7 +19,8 @@
** ====== CLASSICS ======
*/
-#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type|["
+#define M_BUILTINS_REF "echo:cd:pwd:export:unset:env:exit:type:[:alias"
+#define M_BUILTINS_REF_LEN 48
/*
** ====== PSX ======
@@ -51,6 +52,7 @@
#define FT_ZER_VAR "$0"
#define FT_RET_VAR "$?"
#define FT_PID_VAR "$$"
+#define FT_ARGC_VAR "$#"
/*
** ====== FAIL MSG ======
@@ -62,10 +64,58 @@
#define FT_FAIL_HOME_NOT_SET "HOME not set"
/*
+** ====== UTILS ======
+*/
+
+#define C_NUL 0x00
+#define C_LF 0x0a
+#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_SEMIC 0x3b
+#define C_EQUALS 0x3d
+#define C_BACKS 0x5c
+#define C_PIPE 0x7c
+
+/*
** ====== FILES ======
*/
#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"
+
#endif