aboutsummaryrefslogtreecommitdiff
path: root/include/minishell.h
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-25 15:58:12 +0100
committerGitHub2025-01-25 15:58:12 +0100
commit3b97eaa0500314866c4a106c77e8f671c9751b89 (patch)
treef44fffea0ef290f9bdf79448c90d794ba97b8ca4 /include/minishell.h
parentbd8c817797d5f2b1affe6957ffc51846a38e70ec (diff)
parent8fb5e2839cb7eb7bb72f577577afafcdbdc8a714 (diff)
downloadminishell-3b97eaa0500314866c4a106c77e8f671c9751b89.tar.gz
minishell-3b97eaa0500314866c4a106c77e8f671c9751b89.zip
Merge memory leak fixes
Diffstat (limited to 'include/minishell.h')
-rw-r--r--include/minishell.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/minishell.h b/include/minishell.h
index 356df7a..6961815 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/22 17:14:49 by dkaiser #+# #+# */
-/* Updated: 2025/01/20 19:12:03 by chuhlig ### ########.fr */
+/* Updated: 2025/01/25 15:41:33 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -32,9 +32,10 @@ int init_signal_handling(void);
void repl(const char *prompt, t_env **env, int *promptflag);
-t_list *parse(t_token *tokens, t_env **env);
+t_node *parse(t_token *tokens, t_env **env);
t_node *parse_cmd(t_token *tokens, t_env **env);
-t_redirection *collect_redirs(t_token **tokens, t_env *env, t_list **cf);
+t_redirection *collect_redirs(t_token **tokens, t_env *env,
+ t_list **create_files);
void print_ast(t_node *ast);
@@ -46,7 +47,8 @@ void set_return_code(int return_code, t_env **env);
int handle_redirections(t_redirection *redirs);
void *error(int err_code, char *err_text, int exit_code,
int *ret_code);
-void command_not_found_error(char *cmd);
+void *command_not_found_error(char *cmd, int *return_code,
+ char *cmd_path, char **split_path);
char *read_heredoc(char *delimiter);
int handle_input_redirection(t_redirection *redir);
int handle_output_redirection(t_redirection *redir);