🔨」 fix: revert old main, my bad

This commit is contained in:
yosyo
2024-05-22 14:53:27 +02:00
parent f1a4db8bc6
commit dac5ad71bc

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */ /* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */ /* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
/* Updated: 2024/05/21 00:28:39 by mmoussou ### ########.fr */ /* Updated: 2024/05/22 14:53:00 by mmoussou ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -49,8 +49,7 @@ void print_pipe(t_list *pipe)
int main(void)//(int ac, char **av, char **env) int main(void)//(int ac, char **av, char **env)
{ {
ft_heredoc("EOF"); char *test;
/*char *test;
char **lll; char **lll;
char *prompt; char *prompt;
t_list *cmd; t_list *cmd;
@ -66,13 +65,13 @@ int main(void)//(int ac, char **av, char **env)
add_history(test); add_history(test);
lll = ft_split(test, ' '); lll = ft_split(test, ' ');
if (!*lll) if (!*lll)
continue; continue ;
if (is_str(test, "exit")) if (is_str(test, "exit"))
break; break ;
cmd = split_pipe(test); cmd = split_pipe(test);
print_pipe(cmd); print_pipe(cmd);
ft_free("a", &lll); ft_free("a", &lll);
} }
ft_free("a", &lll); ft_free("a", &lll);
return (0);*/ return (0);
} }