From c8acd3d4f2ed5f3b8dc3b9df9b34b6051edfe135 Mon Sep 17 00:00:00 2001 From: Quinten Mennen Date: Tue, 18 Mar 2025 16:24:05 +0100 Subject: [PATCH] chore (format): make it norminette compliant once again --- inc/token.h | 4 ++-- src/lexer/lexer_read_word.c | 16 ++++++++-------- src/main.c | 5 +++-- src/token/token_validate_list.c | 4 ++-- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/inc/token.h b/inc/token.h index dae5a76..e149799 100644 --- a/inc/token.h +++ b/inc/token.h @@ -6,7 +6,7 @@ /* By: qmennen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/05 13:11:41 by qmennen #+# #+# */ -/* Updated: 2025/03/18 16:14:51 by qmennen ### ########.fr */ +/* Updated: 2025/03/18 16:22:39 by qmennen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,6 +17,6 @@ t_token *token_from_list(t_list *list); t_list *token_list_index(t_list *tokens, int index); -t_token *token_validate_list(t_list *tokens); +t_token *token_validate_list(t_list *tokens); #endif diff --git a/src/lexer/lexer_read_word.c b/src/lexer/lexer_read_word.c index 9b3ab0c..0f6d697 100644 --- a/src/lexer/lexer_read_word.c +++ b/src/lexer/lexer_read_word.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ -/* :::::::: */ -/* lexer_read_word.c :+: :+: */ -/* +:+ */ -/* By: qmennen +#+ */ -/* +#+ */ -/* Created: 2025/02/05 19:03:47 by qmennen #+# #+# */ -/* Updated: 2025/03/07 13:42:29 by whaffman ######## odam.nl */ +/* ::: :::::::: */ +/* lexer_read_word.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: qmennen +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2025/02/05 19:03:47 by qmennen #+# #+# */ +/* Updated: 2025/03/18 16:23:02 by qmennen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -57,7 +57,7 @@ char *read_word(t_minishell *msh, t_lexer *lexer, int len) return (dest); } -int match_quotes(t_lexer *lexer) +int match_quotes(t_lexer *lexer) { char c; int i; diff --git a/src/main.c b/src/main.c index 6988c9d..5a58b17 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: qmennen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/04 16:19:22 by whaffman #+# #+# */ -/* Updated: 2025/03/18 16:20:18 by qmennen ### ########.fr */ +/* Updated: 2025/03/18 16:22:54 by qmennen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,6 +15,7 @@ static void main_loop(t_minishell *msh) { t_token *error_token; + while (TRUE) { msh->line = ft_prompt(msh); @@ -28,7 +29,7 @@ static void main_loop(t_minishell *msh) printf(BOLD RED"minishell"RESET": syntax error near position %i\n", (error_token->position + 1)); free_minishell_line(msh); - continue; + continue ; } ft_lstiter(msh->tokens, token_print); msh->commands = parser_get_commands(msh); diff --git a/src/token/token_validate_list.c b/src/token/token_validate_list.c index f82d780..92272ea 100644 --- a/src/token/token_validate_list.c +++ b/src/token/token_validate_list.c @@ -6,13 +6,13 @@ /* By: qmennen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/18 16:08:44 by qmennen #+# #+# */ -/* Updated: 2025/03/18 16:13:41 by qmennen ### ########.fr */ +/* Updated: 2025/03/18 16:23:11 by qmennen ### ########.fr */ /* */ /* ************************************************************************** */ #include "token.h" -t_token *token_validate_list(t_list *tokens) +t_token *token_validate_list(t_list *tokens) { t_list *current; t_token *token;