summaryrefslogtreecommitdiffstats
path: root/src/m_loop_next.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_loop_next.c')
-rw-r--r--src/m_loop_next.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/m_loop_next.c b/src/m_loop_next.c
index fb95236..d138206 100644
--- a/src/m_loop_next.c
+++ b/src/m_loop_next.c
@@ -28,7 +28,7 @@ static char
if (fd == STDIN_FILENO)
m_prompt_psx(psx, msh);
get_next_line(fd, &counter_line);
- if (counter_line[0] != C_NULL)
+ if (counter_line[0] != C_NUL)
{
line = ft_nrealloc(line,
ft_strlen(line) + 1,
@@ -49,7 +49,7 @@ static char
if (fd == STDIN_FILENO)
m_prompt_psx(psx, msh);
get_next_line(fd, &counter_line);
- if (counter_line[0] != C_NULL)
+ if (counter_line[0] != C_NUL)
{
line = ft_nrealloc(line,
ft_strlen(line) + 1,
@@ -70,7 +70,7 @@ static char
if (fd == STDIN_FILENO)
m_prompt_psx(psx, msh);
get_next_line(fd, &counter_line);
- if (counter_line[0] != C_NULL)
+ if (counter_line[0] != C_NUL)
{
line = ft_nrealloc(line,
ft_strlen(line) + 1,
@@ -147,8 +147,8 @@ static t_bool
m_check_dquote(char **ptr, char line[])
{
if (((*ptr - line) == 0) ||
- ((*ptr - line) == 1 && *(*ptr - 1) == C_BS) ||
- ((*ptr - line) > 1 && *(*ptr - 1) == C_BS && *(*ptr - 2) != C_BS))
+ ((*ptr - line) == 1 && *(*ptr - 1) == C_BACKS) ||
+ ((*ptr - line) > 1 && *(*ptr - 1) == C_BACKS && *(*ptr - 2) != C_BACKS))
{
return (FALSE);
}
@@ -167,14 +167,14 @@ static t_bool
return (FALSE);
c = (mode == Q_SINGLE) ? (C_SQUOTE) : (C_DQUOTE);
(*ptr) += 1;
- while (**ptr != C_NULL)
+ while (**ptr != C_NUL)
{
if (**ptr == c && c == C_DQUOTE)
{
if (m_check_dquote(ptr, line) == FALSE)
{
(*ptr)++;
- if (**ptr == C_NULL)
+ if (**ptr == C_NUL)
break ;
}
else
@@ -195,7 +195,7 @@ static t_bool
ptr = line;
mode = Q_NONE;
- while (*ptr != C_NULL)
+ while (*ptr != C_NUL)
{
if (*ptr == C_SQUOTE || *ptr == C_DQUOTE)
{