diff options
Diffstat (limited to 'src/p_split.c')
-rw-r--r-- | src/p_split.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/p_split.c b/src/p_split.c index dc26c04..359b97e 100644 --- a/src/p_split.c +++ b/src/p_split.c @@ -21,11 +21,10 @@ #include "u_parse.h" #include "u_utils.h" -static void - p_meet_splitter(char *ptr, - const char line[], - t_split_block *sp, - t_quote_mode mode) +static void p_meet_splitter(char *ptr, + const char line[], + t_split_block *sp, + t_quote_mode mode) { if (mode == Q_NONE && *ptr == C_SEMIC && *(ptr + 1) != C_SEMIC && u_is_not_escaped(line, ptr) == TRUE) @@ -50,8 +49,7 @@ static void } } -static void - p_fill_sp(t_split_block *sp, const char line[]) +static void p_fill_sp(t_split_block *sp, const char line[]) { char *ptr; t_quote_mode mode; @@ -76,8 +74,7 @@ static void sp->count += 1; } -static void - *p_del_split(char *words[], size_t todel) +static void *p_del_split(char *words[], size_t todel) { size_t i; @@ -90,8 +87,7 @@ static void return (NULL); } -static char - **p_get_words(const char line[], const t_split_block *sp) +static char **p_get_words(const char line[], const t_split_block *sp) { char **words; int64_t i; @@ -120,8 +116,7 @@ static char return (words); } -char - **p_split_line(char line[]) +char **p_split_line(char line[]) { t_split_block sp; char **words; |