summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 15:44:35 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 15:44:35 +0200
commitb098fc000bed958f7df5e9edd3ed0871c59676e2 (patch)
tree530a77da22f653ca17ecf63c6fcf225fb3a907d8 /src
parentTODO (diff)
download42-minishell-b098fc000bed958f7df5e9edd3ed0871c59676e2.tar.gz
42-minishell-b098fc000bed958f7df5e9edd3ed0871c59676e2.tar.bz2
42-minishell-b098fc000bed958f7df5e9edd3ed0871c59676e2.tar.xz
42-minishell-b098fc000bed958f7df5e9edd3ed0871c59676e2.tar.zst
42-minishell-b098fc000bed958f7df5e9edd3ed0871c59676e2.zip
commit
Diffstat (limited to '')
-rw-r--r--src/m_loop_next.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/m_loop_next.c b/src/m_loop_next.c
index f1d1f0b..31751f2 100644
--- a/src/m_loop_next.c
+++ b/src/m_loop_next.c
@@ -162,9 +162,9 @@ static t_bool
{
char c;
- if (mode == M_NO_MODE)
+ if (mode == FT_NO_MODE)
return (FALSE);
- c = (mode == M_SQ_MODE) ? (C_SQUOTE) : (C_DQUOTE);
+ c = (mode == FT_SQ_MODE) ? (C_SQUOTE) : (C_DQUOTE);
(*ptr) += 1;
while (**ptr != C_NULL)
{
@@ -193,7 +193,7 @@ static t_bool
uint8_t mode;
ptr = line;
- mode = M_NO_MODE;
+ mode = FT_NO_MODE;
while (*ptr != C_NULL)
{
if (*ptr == C_SQUOTE || *ptr == C_DQUOTE)
@@ -202,9 +202,9 @@ static t_bool
((ptr - line) >= 1 && *(ptr - 1) != C_BS) ||
((ptr - line) > 1 && *(ptr - 1) == C_BS && *(ptr - 2) == C_BS))
{
- mode = (*ptr == C_SQUOTE) ? (M_SQ_MODE) : (M_DQ_MODE);
+ mode = (*ptr == C_SQUOTE) ? (FT_SQ_MODE) : (FT_DQ_MODE);
if (m_find_next_quote(&ptr, line, mode) == FALSE)
- mode = M_NO_MODE;
+ mode = FT_NO_MODE;
else
return (TRUE);
}