diff options
Diffstat (limited to 'src/p_args_len.c')
-rw-r--r-- | src/p_args_len.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/p_args_len.c b/src/p_args_len.c index c736a3a..801406f 100644 --- a/src/p_args_len.c +++ b/src/p_args_len.c @@ -21,18 +21,18 @@ static size_t end++; if (word[end] == c) return (end + 1); - while (word[end] != C_NULL && word[end] != c) + while (word[end] != C_NUL && word[end] != c) { end++; if (word[end] == c && c == C_DQUOTE) { - if (word[end - 1] == C_BS && word[end - 2] != C_BS) + if (word[end - 1] == C_BACKS && word[end - 2] != C_BACKS) { end++; } } } - if (word[end] != C_NULL) + if (word[end] != C_NUL) { end++; } @@ -42,16 +42,16 @@ static size_t static size_t p_skip_unquote(const char word[], size_t end) { - while (word[end] != C_NULL && ft_iswhitespace(word[end]) == FALSE) + while (word[end] != C_NUL && ft_iswhitespace(word[end]) == FALSE) { end++; if (ft_iswhitespace(word[end]) == TRUE && end == 1 && - word[end - 1] == C_BS) + word[end - 1] == C_BACKS) { end++; } else if (ft_iswhitespace(word[end]) == TRUE && end > 1 && - word[end - 1] == C_BS && word[end - 2] != C_BS) + word[end - 1] == C_BACKS && word[end - 2] != C_BACKS) { end++; } @@ -62,7 +62,7 @@ static size_t static size_t p_skip_quote(const char word[], size_t end) { - while (word[end] != C_NULL && ft_iswhitespace(word[end]) == FALSE) + while (word[end] != C_NUL && ft_iswhitespace(word[end]) == FALSE) { if (word[end] == C_SQUOTE || word[end] == C_DQUOTE) { @@ -70,7 +70,7 @@ static size_t } else { - while (word[end] != C_NULL && + while (word[end] != C_NUL && ft_iswhitespace(word[end]) == FALSE) { end++; @@ -87,7 +87,7 @@ size_t end = start; if (word[start] != C_SQUOTE && word[start] != C_DQUOTE && - word[start] != C_NULL) + word[start] != C_NUL) { end = p_skip_unquote(word, end); } |