2024-04-26 13:54:10 +02:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* minishell.h :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2024/04/26 09:38:51 by mmoussou #+# #+# */
|
2024-05-06 20:52:14 +02:00
|
|
|
/* Updated: 2024/05/06 20:30:42 by mmoussou ### ########.fr */
|
2024-05-07 11:04:20 +02:00
|
|
|
/* Updated: 2024/05/03 10:24:15 by adjoly ### ########.fr */
|
2024-04-26 13:54:10 +02:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#ifndef MINISHELL_H
|
|
|
|
# define MINISHELL_H
|
|
|
|
|
|
|
|
# include <stdio.h>
|
2024-05-13 17:33:29 +02:00
|
|
|
# include <readline/readline.h>
|
2024-07-09 11:25:22 +02:00
|
|
|
# include <readline/history.h>
|
2024-04-26 13:54:10 +02:00
|
|
|
# include <stdlib.h>
|
2024-07-09 11:25:22 +02:00
|
|
|
# include <signal.h>
|
2024-05-06 20:52:14 +02:00
|
|
|
# include <stdint.h>
|
2024-05-19 05:49:22 +02:00
|
|
|
# include <sys/types.h>
|
|
|
|
# include <sys/stat.h>
|
2024-05-20 11:22:25 +02:00
|
|
|
# include <sys/wait.h>
|
|
|
|
# include <fcntl.h>
|
2024-05-19 05:49:22 +02:00
|
|
|
# include <unistd.h>
|
|
|
|
# include <dirent.h>
|
2024-07-09 11:25:22 +02:00
|
|
|
# include <stdbool.h>
|
2024-04-26 13:54:10 +02:00
|
|
|
# include "libft.h"
|
|
|
|
|
2024-07-09 11:25:22 +02:00
|
|
|
# include "error_msg.h"
|
2024-05-27 18:06:14 +02:00
|
|
|
# include "env.h"
|
2024-07-09 11:25:22 +02:00
|
|
|
# include "prompt.h"
|
2024-05-06 20:52:14 +02:00
|
|
|
# include "parsing.h"
|
|
|
|
# include "execution.h"
|
|
|
|
|
2024-07-06 13:36:03 +02:00
|
|
|
void free_redir(void *redir_v);
|
|
|
|
void free_token(void *token_v);
|
|
|
|
void free_cmd(void *content);
|
|
|
|
|
2024-07-09 18:06:35 +02:00
|
|
|
t_env **get_env(t_env **env);
|
|
|
|
t_list **get_list(t_list **list);
|
2024-07-10 01:22:28 +02:00
|
|
|
t_list **get_list2(t_list **list);
|
2024-07-09 18:06:35 +02:00
|
|
|
|
2024-04-26 13:54:10 +02:00
|
|
|
#endif
|