summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 15:38:51 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 15:38:51 +0200
commit219803c3746620780f49a09d0966c1dbbba5ad50 (patch)
tree8aa05c8d4df52b1aabfb26ab3f67fad7b4eb8be6
parentGood relining (diff)
download42-minishell-219803c3746620780f49a09d0966c1dbbba5ad50.tar.gz
42-minishell-219803c3746620780f49a09d0966c1dbbba5ad50.tar.bz2
42-minishell-219803c3746620780f49a09d0966c1dbbba5ad50.tar.xz
42-minishell-219803c3746620780f49a09d0966c1dbbba5ad50.tar.zst
42-minishell-219803c3746620780f49a09d0966c1dbbba5ad50.zip
TODO
Diffstat (limited to '')
-rw-r--r--TODO.org3
-rw-r--r--src/d_define.h30
-rw-r--r--src/d_enum.h37
-rw-r--r--src/m_loop_next.h7
4 files changed, 39 insertions, 38 deletions
diff --git a/TODO.org b/TODO.org
index 5fa00b7..ac234bb 100644
--- a/TODO.org
+++ b/TODO.org
@@ -22,12 +22,13 @@
* Stuff to add
** DONE [#A] builtins to pipes
** DONE [#A] Proper ~ subst
+** TODO [#A] SIGNAL
** DONE [#B] && ||
** TODO [#B] &
** TODO [#B] $_
** DONE [#B] .minishellrc
** DONE [#B] .minishell_history
-** TODO [#B] SIGNAL
+** TODO [#B] history builtin
** TODO [#C] Norm
** DONE [#C] [ builtin <=== pretty cool yet simple stuff ( [ $a -eq 1 ] )
** TODO [#C] alias
diff --git a/src/d_define.h b/src/d_define.h
index ce0ccc9..ae3d92a 100644
--- a/src/d_define.h
+++ b/src/d_define.h
@@ -107,34 +107,4 @@
#define FT_SQB_LT "-lt"
#define FT_SQB_LE "-le"
-enum
-{
- FT_ID_SQB_B,
- FT_ID_SQB_C,
- FT_ID_SQB_D,
- FT_ID_SQB_E,
- FT_ID_SQB_F,
- FT_ID_SQB_H,
- FT_ID_SQB_N,
- FT_ID_SQB_P,
- FT_ID_SQB_R,
- FT_ID_SQB_S,
- FT_ID_SQB_W,
- FT_ID_SQB_X,
- FT_ID_SQB_Z,
- FT_ID_SQB_L_MAJ,
- FT_ID_SQB_S_MAJ,
- FT_ID_SQB_NT,
- FT_ID_SQB_OT,
- FT_ID_SQB_EQUA,
- FT_ID_SQB_DIFF,
- FT_ID_SQB_EQ,
- FT_ID_SQB_NE,
- FT_ID_SQB_GT,
- FT_ID_SQB_GE,
- FT_ID_SQB_LT,
- FT_ID_SQB_LE,
- FT_ID_SQB_COUNT
-};
-
#endif
diff --git a/src/d_enum.h b/src/d_enum.h
index c046118..6bd82df 100644
--- a/src/d_enum.h
+++ b/src/d_enum.h
@@ -34,6 +34,13 @@ enum
enum
{
+ FT_NO_MODE,
+ FT_SQ_MODE,
+ FT_DQ_MODE
+};
+
+enum
+{
FT_ID_ECHO,
FT_ID_CD,
FT_ID_PWD,
@@ -46,4 +53,34 @@ enum
FT_BUILTINS_COUNT
};
+enum
+{
+ FT_ID_SQB_B,
+ FT_ID_SQB_C,
+ FT_ID_SQB_D,
+ FT_ID_SQB_E,
+ FT_ID_SQB_F,
+ FT_ID_SQB_H,
+ FT_ID_SQB_N,
+ FT_ID_SQB_P,
+ FT_ID_SQB_R,
+ FT_ID_SQB_S,
+ FT_ID_SQB_W,
+ FT_ID_SQB_X,
+ FT_ID_SQB_Z,
+ FT_ID_SQB_L_MAJ,
+ FT_ID_SQB_S_MAJ,
+ FT_ID_SQB_NT,
+ FT_ID_SQB_OT,
+ FT_ID_SQB_EQUA,
+ FT_ID_SQB_DIFF,
+ FT_ID_SQB_EQ,
+ FT_ID_SQB_NE,
+ FT_ID_SQB_GT,
+ FT_ID_SQB_GE,
+ FT_ID_SQB_LT,
+ FT_ID_SQB_LE,
+ FT_ID_SQB_COUNT
+};
+
#endif
diff --git a/src/m_loop_next.h b/src/m_loop_next.h
index 1c80e2a..b4ca62c 100644
--- a/src/m_loop_next.h
+++ b/src/m_loop_next.h
@@ -17,13 +17,6 @@
#include "s_struct.h"
-enum
-{
- M_NO_MODE,
- M_SQ_MODE,
- M_DQ_MODE
-};
-
char *m_check_multi_backslash(int32_t fd, char line[], t_msh *msh);
char *m_check_multi_pipe(int32_t fd, char line[], t_msh *msh);
char *m_check_multi_and(int32_t fd, char line[], t_msh *msh);