Browse Source

-fix: norme

master
narnaud 3 years ago
parent
commit
829a8c75f5
  1. 5
      lexer.c
  2. 4
      utils_2.c

5
lexer.c

@ -6,7 +6,7 @@
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/02 13:44:57 by narnaud #+# #+# */
/* Updated: 2022/05/16 11:46:13 by narnaud ### ########.fr */
/* Updated: 2022/05/16 12:53:40 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,7 +31,8 @@ void tmp_dealer(t_datas *datas, t_lexer *lex, char *line, char *tmp)
}
else if (check_register(lex, &line, tmp))
tmp_i = (ft_bzero(tmp, STR_MAX_SIZE), 0);
else if (!(lex->state == ROOT_ST && lex->deep == 0 && (*line == '"' || *line == '\'')))
else if (!(lex->state == ROOT_ST && lex->deep == 0
&& (*line == '"' || *line == '\'')))
tmp[tmp_i++] = *(line++);
}
}

4
utils_2.c

@ -6,7 +6,7 @@
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/06 13:15:59 by narnaud #+# #+# */
/* Updated: 2022/05/16 12:49:49 by narnaud ### ########.fr */
/* Updated: 2022/05/16 12:52:38 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
@ -34,7 +34,7 @@ int is_valid_identifier(char *ident)
while (ident[i])
{
if (!ft_isalpha(ident[i]) && !ft_isdigit(ident[i])
&& ident[i] != '_')
&& ident[i] != '_')
{
ft_putstr_fd("export: not an identifier: ", 2);
ft_putstr_fd(ident, 2);

Loading…
Cancel
Save