From 829a8c75f5b4fa66d13f664fc0974ff4ab2f8535 Mon Sep 17 00:00:00 2001 From: narnaud Date: Mon, 16 May 2022 12:54:33 +0200 Subject: [PATCH] -fix: norme --- lexer.c | 5 +++-- utils_2.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lexer.c b/lexer.c index 0a023ad..482a792 100755 --- a/lexer.c +++ b/lexer.c @@ -6,7 +6,7 @@ /* By: mea +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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++); } } diff --git a/utils_2.c b/utils_2.c index 07933e8..524e71d 100755 --- a/utils_2.c +++ b/utils_2.c @@ -6,7 +6,7 @@ /* By: mea +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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);