aboutsummaryrefslogtreecommitdiff
path: root/include/minishell.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-29 17:22:13 +0200
committerCharles <sircharlesaze@gmail.com>2020-03-29 17:22:13 +0200
commitffec9915be37ceebeadeb12958cbb7424cbd3633 (patch)
tree85f12fca50148dac58d58163a8b8f1794172add9 /include/minishell.h
parent73a7027a9d58c6ca71817170bff23ac71edac9d8 (diff)
downloadminishell-ffec9915be37ceebeadeb12958cbb7424cbd3633.tar.gz
minishell-ffec9915be37ceebeadeb12958cbb7424cbd3633.tar.bz2
minishell-ffec9915be37ceebeadeb12958cbb7424cbd3633.zip
Eval draft
Diffstat (limited to 'include/minishell.h')
-rw-r--r--include/minishell.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/minishell.h b/include/minishell.h
index 878add8..3398461 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -42,6 +42,25 @@ typedef t_ftht* t_env;
** eval.c
*/
+typedef struct
+{
+ t_status_type type;
+ union
+ {
+ char *error_msg;
+ char *arg;
+ int code;
+ } value;
+} t_status;
+
+typedef enum
+{
+ STYPE_ERROR,
+ STYPE_ARG,
+ STYPE_FILE,
+ // ...
+} t_status_type;
+
int ms_eval(t_path path, t_env env, t_ast *ast);
/*