/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mcolonna +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/23 14:33:45 by mcolonna #+# #+# */ /* Updated: 2024/04/23 16:00:53 by mcolonna ### ########.fr */ /* */ /* ************************************************************************** */ #include "include.h" int main(void) { t_memclass mc; t_command command; int errorstatus; errorstatus = 0; while (true) { mc = mem_newclass(minishell_error); command = parse_command(ask_command(mc)); if (command.error) continue ; errorstatus = execute_command(command); mem_freeall(mc); } return (errorstatus); }