1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-05-13 16:08:45 +02:00

✏️」 norm: normed project.

This commit is contained in:
2024-07-18 13:32:09 +02:00
parent cf96867e16
commit b8075efe3a
7 changed files with 142 additions and 83 deletions

View File

@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* run_checks.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/18 13:30:27 by adjoly #+# #+# */
/* Updated: 2024/07/18 13:31:33 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "parsing.h"
#include "error_msg.h"
#include <readline/history.h>
bool run_checks(char *rl)
{
if (!*rl)
return (true);
if (check_space(rl))
return (true);
add_history(rl);
if (check_syntax(rl))
return (true);
if (check_quote(rl))
return (true);
if (check_pipe(rl))
return (true);
return (false);
}