srcs a la norme

This commit is contained in:
Hugo LAMY
2021-12-20 17:02:57 +01:00
parent 8959166804
commit 7de89b43b1
4 changed files with 11 additions and 27 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/13 04:35:06 by lperrey #+# #+# */
/* Updated: 2021/11/26 21:27:05 by lperrey ### ########.fr */
/* Updated: 2021/12/20 16:29:27 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -44,7 +44,7 @@ static int quote_state_change(int *quote_state, const char *s)
{
if (*quote_state == IN_QUOTES)
*quote_state = 0;
else if (ft_strchr(&s[1], '\'')) // if closed quotes
else if (ft_strchr(&s[1], '\''))
*quote_state = IN_QUOTES;
else
return (0);
@@ -54,7 +54,7 @@ static int quote_state_change(int *quote_state, const char *s)
{
if (*quote_state == IN_DQUOTES)
*quote_state = 0;
else if (ft_strchr(&s[1], '\"')) // if closed quotes
else if (ft_strchr(&s[1], '\"'))
*quote_state = IN_DQUOTES;
else
return (0);