-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminishell.h
54 lines (45 loc) · 1.63 KB
/
minishell.h
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
48
49
50
51
52
53
54
/* ************************************************************************** */
/* */
/* :::::::: */
/* minishell.h :+: :+: */
/* +:+ */
/* By: ageels <ageels@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2022/09/27 22:19:40 by ageels #+# #+# */
/* Updated: 2022/11/03 15:32:48 by ageels ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_H
# define MINISHELL_H
# include <unistd.h>
# include <stdio.h>
# include <fcntl.h>
# include <readline/readline.h>
# include <readline/history.h>
# include <sys/wait.h>
# include <sys/stat.h>
# include <stdlib.h>
# include <signal.h>
# include <stdbool.h>
# include <curses.h>
# include <term.h>
# include <errno.h>
# include "structs.h"
# include "lib/libft/libft.h"
# include "src/display/display.h"
# include "src/lexer/token.h"
# include "src/setup_reset/setup.h"
// FILES & FUNCTIONS:
//display
char *prompt(t_cmd *cmd);
// execute
int execute(t_cmd *cmds);
//heredoc
int heredoc(t_cmd *cmd);
// lexer
int tokenize(t_cmd *cmd, char *input);
// parser
int parse(t_cmd *cmds);
// substitutor
void substitute(t_cmd *cmd, char **envp);
#endif