diff options
Diffstat (limited to '')
-rw-r--r-- | src/e_line.c | 8 | ||||
-rw-r--r-- | src/m_loop.c | 1 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/e_line.c b/src/e_line.c index de1eae2..c0edb60 100644 --- a/src/e_line.c +++ b/src/e_line.c @@ -22,8 +22,7 @@ #include "s_struct.h" #include "u_utils.h" -void - e_line(t_msh *msh) +void e_line(t_msh *msh) { uint8_t bu_id; @@ -31,9 +30,8 @@ void e_pipes(msh); else if (msh->com != NULL) { - if (msh->com->bin != NULL && - (bu_id = u_get_builtin_id(msh->com->bin)) - < B_BUILTINS_COUNT) + if (msh->com->bin != NULL + && (bu_id = u_get_builtin_id(msh->com->bin)) < B_BUILTINS_COUNT) e_builtin(msh->com, bu_id, msh); else if (msh->com->bin != NULL) e_extern(msh->com, msh); diff --git a/src/m_loop.c b/src/m_loop.c index b111577..eea9150 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -43,6 +43,7 @@ static void m_parse_and_run_line(char line[], t_msh *msh) ptr = msh->curr; while (ptr != NULL) { + ft_printf("[%s]\n", ptr->lblock); if ((previf == 0) || (previf == 1 && msh->ret == 0) || (previf == 2 && msh->ret != 0)) { |