aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/eval.h4
-rw-r--r--include/parser.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/include/eval.h b/include/eval.h
index e2f3c8b..6f54280 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/10/09 13:40:26 by cacharle ### ########.fr */
+/* Updated: 2020/10/09 16:12:05 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -63,7 +63,7 @@ int eval_cmd(int fds[2], t_env env, t_ast *ast);
*/
int eval_operation(int fds[2], t_env env, t_ast *ast);
-int eval_pipeline(int fds[2], t_env env, t_ast *ast);
+int eval_pipeline(t_env env, t_ast *ast);
/*
** parenthesis.c
diff --git a/include/parser.h b/include/parser.h
index 126ef8d..bd4e5b0 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -6,7 +6,7 @@
/* By: cacharle <cacharle@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/28 09:00:00 by cacharle #+# #+# */
-/* Updated: 2020/10/09 13:45:41 by cacharle ### ########.fr */
+/* Updated: 2020/10/09 16:02:40 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -112,6 +112,9 @@ typedef struct s_parsed
t_parsed *parsed_new(t_ast *ast, t_tok_lst *rest);
t_parsed *parsed_error(const char *format, ...);
+t_parsed *parsed_expected(void);
+t_parsed *parsed_unexpected(char *content);
+void parsed_destroy(t_parsed *parsed);
/*
** parse.c