diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/p_split.c | 12 | ||||
-rw-r--r-- | src/p_split.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/p_split.c b/src/p_split.c index 359b97e..57ba6d6 100644 --- a/src/p_split.c +++ b/src/p_split.c @@ -26,22 +26,22 @@ static void p_meet_splitter(char *ptr, 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) + if (mode == Q_NONE && *ptr == C_SEMIC && *(ptr + 1) != C_SEMIC + && u_is_not_escaped(line, ptr) == TRUE) { sp->pos[sp->count] = (ptr - line); sp->nextif[sp->count] = 0; sp->count += 1; } - else if (mode == Q_NONE && *ptr == C_AMP && *(ptr + 1) == C_AMP && - (*ptr + 2) != C_PIPE && u_is_not_escaped(line, ptr) == TRUE) + else if (mode == Q_NONE && *ptr == C_AMP && *(ptr + 1) == C_AMP + && (*ptr + 2) != C_PIPE && u_is_not_escaped(line, ptr) == TRUE) { sp->pos[sp->count] = (ptr - line); sp->nextif[sp->count] = 1; sp->count += 1; } - else if (mode == Q_NONE && *ptr == C_PIPE && *(ptr + 1) == C_PIPE && - *(ptr + 2) != C_PIPE && u_is_not_escaped(line, ptr) == TRUE) + else if (mode == Q_NONE && *ptr == C_PIPE && *(ptr + 1) == C_PIPE + && *(ptr + 2) != C_PIPE && u_is_not_escaped(line, ptr) == TRUE) { sp->pos[sp->count] = (ptr - line); sp->nextif[sp->count] = 2; diff --git a/src/p_split.h b/src/p_split.h index 85f663f..70d368f 100644 --- a/src/p_split.h +++ b/src/p_split.h @@ -20,6 +20,6 @@ typedef struct s_split_block uint32_t count; } t_split_block; -char **p_split_line(char line[]); +char **p_split_line(char line[]); #endif |