From 7c645ea2acd3adad071692e72e455f589a8a9d91 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 21 Oct 2020 23:24:14 +0200 Subject: In progress --- src/e_line.c | 8 +++----- 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)) { -- cgit v1.2.3