From 054058a9fe42d747fd9bc3444ddefbe87106ac1c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 1 Oct 2020 18:44:17 +0200 Subject: Normed m_loop --- src/m_loop.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/m_loop.c') diff --git a/src/m_loop.c b/src/m_loop.c index 8912284..fe4a4b8 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -29,8 +29,7 @@ #include "u_parse.h" #include "u_vars.h" -static void - m_parse_and_run_line(char line[], t_msh *msh) +static void m_parse_and_run_line(char line[], t_msh *msh) { t_line_block *ptr; uint8_t previf; @@ -56,8 +55,7 @@ static void s_line_clear(&msh->curr); } -void - m_dump_hist(char hist[], t_msh *msh) +void m_dump_hist(char hist[], t_msh *msh) { char histfile[PATH_MAX]; int32_t fd; @@ -77,8 +75,7 @@ void } } -static void - m_handle_hist(char hist[], char line[], t_msh *msh) +static void m_handle_hist(char hist[], char line[], t_msh *msh) { static uint16_t hist_i = 0; @@ -121,8 +118,7 @@ static void m_delete_comments(char line[]) } } -uint8_t - m_loop(int32_t fd, t_msh *msh) +uint8_t m_loop(int32_t fd, t_msh *msh) { static char hist[255 * 4096]; char *line; @@ -138,10 +134,7 @@ uint8_t m_delete_comments(line); if (line[0] != C_NUL) { - line = m_check_multi_backslash(fd, line, msh); - line = m_check_multi_pipe(fd, line, msh); - line = m_check_multi_and(fd, line, msh); - line = m_check_multi_quotes(fd, line, msh); + line = m_check_multis(fd, line, msh); if (fd == STDIN_FILENO) m_handle_hist(hist, line, msh); m_parse_and_run_line(line, msh); -- cgit v1.2.3