aboutsummaryrefslogtreecommitdiff
path: root/include/eval.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/eval.h')
-rw-r--r--include/eval.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/include/eval.h b/include/eval.h
index 55cd497..31f729b 100644
--- a/include/eval.h
+++ b/include/eval.h
@@ -1,7 +1,19 @@
-#ifndef MS_EVAL_H
-# define MS_EVAL_H
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* eval.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/04/01 17:05:30 by charles #+# #+# */
+/* Updated: 2020/04/01 17:53:26 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
-/**
+#ifndef EVAL_H
+# define EVAL_H
+
+/*
** \file eval.h
** \brief Evaluation module
*/
@@ -9,23 +21,23 @@
# include "minishell.h"
# include "ast.h"
-/**
+/*
** \brief Evaluation state struct
*/
typedef struct
{
- int pipe_in[2]; // need stack pipe
+ int pipe_in[2];
int pipe_out[2];
t_path path;
t_env env;
} t_eval_state;
-/**
+/*
** \brief Evaluation status struct
*/
-typedef struct
+typedef struct s_eval_status
{
char *err;
int status;
@@ -42,7 +54,7 @@ int eval(t_eval_state *state, t_ast *ast);
*/
bool exec_is_path(char *path_str);
-bool exec_is_valid(char *exec_path);
+bool exec_is_valid(char *exec_path);
char *exec_search_path(t_path path, char *path_var, char *exec_name);
/*