From f6faf88cd0991be3184af67d5fa271b12f70e925 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 28 Oct 2020 01:26:44 +0100 Subject: Norming --- src/m_loop.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/m_loop.c') diff --git a/src/m_loop.c b/src/m_loop.c index d8ea680..27ebecd 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -33,7 +33,9 @@ #include "u_parse.h" #include "u_vars.h" -static void m_parse_and_run_line(char line[], unsigned char previf, t_msh *msh) +static void m_parse_and_run_line(char line[], + unsigned char previf, + t_msh *msh) { t_line_block *ptr; @@ -62,10 +64,10 @@ static void m_parse_and_run_line(char line[], unsigned char previf, t_msh *msh) 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]; - int fd; + int fd; if (hist[0] != C_NUL && ft_strlen(hist) > 0) { @@ -82,7 +84,7 @@ void m_dump_hist(char hist[], t_msh *msh) } } -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 unsigned short hist_i = 0; @@ -99,7 +101,7 @@ static void m_handle_hist(char hist[], char line[], t_msh *msh) } } -static void m_delete_comments(char line[]) +static void m_delete_comments(char line[]) { char *ptr; t_quote_mode mode; @@ -125,7 +127,7 @@ static void m_delete_comments(char line[]) } } -unsigned char m_loop(int fd, t_msh *msh) +unsigned char m_loop(int fd, t_msh *msh) { static char hist[255 * 4096]; char *line; -- cgit v1.2.3