aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-20 19:04:57 +0100
committerGitHub2025-01-20 19:04:57 +0100
commitb73e9e4fda360885035b9b04e9e9aca4724cb285 (patch)
tree4890581e58503e6f17d1044f0ce40630c7707944 /include
parent63a78c5ecea8acf1d8d7096bc693f4b489c3aab4 (diff)
parenta9aba07b52cbf98eb9c52cd8ee0cd5f5021d2931 (diff)
downloadminishell-b73e9e4fda360885035b9b04e9e9aca4724cb285.tar.gz
minishell-b73e9e4fda360885035b9b04e9e9aca4724cb285.zip
Merge branch 'main' into miau
Diffstat (limited to 'include')
-rw-r--r--include/env.h2
-rw-r--r--include/minishell.h1
-rw-r--r--include/token.h3
3 files changed, 3 insertions, 3 deletions
diff --git a/include/env.h b/include/env.h
index 56b50b5..bfb28c7 100644
--- a/include/env.h
+++ b/include/env.h
@@ -40,4 +40,4 @@ t_env *env_new(char *name);
t_env *check_existing(t_env *env, char *av);
int check_flag(int f);
-#endif \ No newline at end of file
+#endif
diff --git a/include/minishell.h b/include/minishell.h
index 1139dbb..e9810bd 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -37,6 +37,7 @@ t_node *parse_cmd(t_token *tokens, t_env **env);
t_redirection *collect_redirs(t_token **tokens, t_env *env, t_list **cf);
void print_ast(t_node *ast);
+
int eval(t_node *node, t_env **env);
char *get_cmd_path(char *cmd, t_env *env, int *return_code);
int execute_cmd(t_cmd *cmd, t_env **env);
diff --git a/include/token.h b/include/token.h
index 993a408..bb7ea94 100644
--- a/include/token.h
+++ b/include/token.h
@@ -45,8 +45,7 @@ t_token *new_redir_token(int type, t_token *previous,
t_token *next);
void free_token(t_token *token);
-void free_token_and_connect(t_token *token);
-void free_tokens(t_token *tokens);
+
void tokenizer(char *s, t_token **token_list,
char quote_check);
void print_token(t_token *token);