summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_loop.c')
-rw-r--r--src/m_loop.c17
1 files changed, 5 insertions, 12 deletions
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);