-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathminishell.h
More file actions
47 lines (41 loc) · 1.04 KB
/
minishell.h
File metadata and controls
47 lines (41 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef MINISHELL_H
# define MINISHELL_H
/* ───── Standard Libraries ───── */
# include <stdlib.h>
# include <limits.h>
# include <unistd.h>
# include <string.h>
# include <errno.h>
# include <fcntl.h>
# include <signal.h>
# include <sys/types.h>
# include <sys/wait.h>
# include <dirent.h>
# include <fnmatch.h>
# include <readline/readline.h>
# include <readline/history.h>
/* ───── Project Modules ───── */
# include "lexer/lexer.h"
# include "gc/gc.h"
# include "utils/utils.h"
# include "parser/parser.h"
# include "debugging/debugging_tools.h"
# include "executor/executor.h"
# include "signals/signals.h"
/* ───── Constants ───── */
# define PROMPT "minishell$ "
# ifndef DEBUG_MODE
# define DEBUG_MODE 0
# endif
/* ───── Global Variables ───── */
extern int g_exit_status;
/* ───── Minishell Context Struct ───── */
typedef struct s_minishell
{
t_gc gc;
t_gc env_gc;
t_token *tokens;
char **envp;
int in_logical_or_pipe;
} t_minishell;
#endif