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> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

View File

@ -1,12 +1,12 @@
/* ************************************************************************** */
/* */
/* :::::::: */
/* lexer_read_word.c :+: :+: */
/* +:+ */
/* By: qmennen <qmennen@student.codam.nl> +#+ */
/* +#+ */
/* 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 <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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;

View File

@ -6,7 +6,7 @@
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);

View File

@ -6,13 +6,13 @@
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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;