aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/eval.h21
-rw-r--r--include/lexer.h8
2 files changed, 21 insertions, 8 deletions
diff --git a/include/eval.h b/include/eval.h
index 3d7436f..1633464 100644
--- a/include/eval.h
+++ b/include/eval.h
@@ -6,7 +6,7 @@
/* By: charles <charles@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/01 17:05:30 by charles #+# #+# */
-/* Updated: 2020/09/13 14:20:17 by charles ### ########.fr */
+/* Updated: 2020/09/13 20:56:29 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -45,22 +45,31 @@ typedef struct
extern pid_t g_child_pid;
/*
-** op.c
+** eval.c
*/
-int eval_op(int fds[2], t_env env, t_path path, t_ast *ast);
+int fork_wrap(int fds[2], void *passed, int (*wrapped)(void *param), pid_t *child_pid);
int eval(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid);
-int eval_forked(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid);
/*
** cmd.c
*/
-int fork_wrap(int fds[2], void *passed, int (*wrapped)(void *param), pid_t *child_pid);
-int fork_wrap_wait(int fds[2], void *passed, int (*wrapped)(void *param));
int eval_cmd(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid);
/*
+** operation.c
+*/
+
+int eval_operation(int fds[2], t_env env, t_path path, t_ast *ast);
+
+/*
+** parenthesis.c
+*/
+
+int eval_parenthesis(int fds[2], t_env env, t_path path, t_ast *ast);
+
+/*
** redir.c
*/
diff --git a/include/lexer.h b/include/lexer.h
index f4d4648..c477a4f 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -6,10 +6,15 @@
/* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/06/19 10:51:26 by nahaddac #+# #+# */
-/* Updated: 2020/09/13 18:06:35 by charles ### ########.fr */
+/* Updated: 2020/09/13 20:33:53 by charles ### ########.fr */
/* */
/* ************************************************************************** */
+/*
+** \file lexer.h
+** \brief Lexer module
+*/
+
#ifndef LEXER_H
# define LEXER_H
@@ -108,7 +113,6 @@ int lexer_sep(char input);
int lexer_space(char *input);
int quote_len(char *input, int i);
-
/*
** trim.c
*/