chore (format): make it norminette compliant once again

This commit is contained in:
Quinten Mennen 2025-03-18 16:24:05 +01:00
parent 6b9e09fb55
commit c8acd3d4f2
4 changed files with 15 additions and 14 deletions

View File

@ -6,7 +6,7 @@
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */ /* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/05 13:11:41 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_token *token_from_list(t_list *list);
t_list *token_list_index(t_list *tokens, int index); 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 #endif

View File

@ -1,12 +1,12 @@
/* ************************************************************************** */ /* ************************************************************************** */
/* */ /* */
/* :::::::: */ /* ::: :::::::: */
/* lexer_read_word.c :+: :+: */ /* lexer_read_word.c :+: :+: :+: */
/* +:+ */ /* +:+ +:+ +:+ */
/* By: qmennen <qmennen@student.codam.nl> +#+ */ /* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/05 19:03:47 by qmennen #+# #+# */ /* Created: 2025/02/05 19:03:47 by qmennen #+# #+# */
/* Updated: 2025/03/07 13:42:29 by whaffman ######## odam.nl */ /* 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); return (dest);
} }
int match_quotes(t_lexer *lexer) int match_quotes(t_lexer *lexer)
{ {
char c; char c;
int i; int i;

View File

@ -6,7 +6,7 @@
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */ /* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/04 16:19:22 by whaffman #+# #+# */ /* 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) static void main_loop(t_minishell *msh)
{ {
t_token *error_token; t_token *error_token;
while (TRUE) while (TRUE)
{ {
msh->line = ft_prompt(msh); 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", printf(BOLD RED"minishell"RESET": syntax error near position %i\n",
(error_token->position + 1)); (error_token->position + 1));
free_minishell_line(msh); free_minishell_line(msh);
continue; continue ;
} }
ft_lstiter(msh->tokens, token_print); ft_lstiter(msh->tokens, token_print);
msh->commands = parser_get_commands(msh); msh->commands = parser_get_commands(msh);

View File

@ -6,13 +6,13 @@
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */ /* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/18 16:08:44 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" #include "token.h"
t_token *token_validate_list(t_list *tokens) t_token *token_validate_list(t_list *tokens)
{ {
t_list *current; t_list *current;
t_token *token; t_token *token;