From 4e249399780b53dad6fa1bf6db8a7c6d32ee2d13 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Mon, 20 Jan 2025 18:41:55 +0100 Subject: I love the norme sooooooooooo much!!!! --- include/debug_tools.h | 8 ++------ include/minishell.h | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 15 deletions(-) (limited to 'include') diff --git a/include/debug_tools.h b/include/debug_tools.h index 6c4bc29..a014ff1 100644 --- a/include/debug_tools.h +++ b/include/debug_tools.h @@ -6,16 +6,14 @@ /* By: chuhlig +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/24 18:34:37 by dkaiser #+# #+# */ -/* Updated: 2025/01/19 21:08:15 by chuhlig ### ########.fr */ +/* Updated: 2025/01/20 17:56:01 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef DEBUG_TOOLS_H # define DEBUG_TOOLS_H -# include -# include "debug_tools.h" - # include "libft.h" +# include # ifndef DEBUG # define DEBUG 0 @@ -25,8 +23,6 @@ void dbg(char *str); void panic(char *msg); - void dbg2(const char *format, ...); - #endif diff --git a/include/minishell.h b/include/minishell.h index ea9f687..ba2a6ad 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: chuhlig +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/22 17:14:49 by dkaiser #+# #+# */ -/* Updated: 2025/01/20 17:18:48 by dkaiser ### ########.fr */ +/* Updated: 2025/01/20 18:41:11 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,7 +26,6 @@ # include # include # include -# include int init(void); int init_signal_handling(void); @@ -46,20 +45,24 @@ int 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); char *read_heredoc(char *delimiter); int handle_input_redirection(t_redirection *redir); int handle_output_redirection(t_redirection *redir); int handle_redirections(t_redirection *redirs); int handle_pipe_parent(int p[2], t_node *node, t_env **env); -int handle_pipe_child(int p[2], t_node *node, - t_env **env, int in_fd); +int handle_pipe_child(int p[2], t_node *node, t_env **env, + int in_fd); int open_file(char *path, int flags, int mode); int eval_rec(t_node *node, t_env **env, int in_fd); -int create_files(t_list *files); +int create_files(t_list *files); +void q4fc(t_list **queue, t_redirection *redir); +void i_love_the_norme(t_token **cur, t_token **tokens); -typedef struct s_minidata { - t_env *env; - t_list **create_files; -} t_minidata; +typedef struct s_minidata +{ + t_env *env; + t_list **create_files; +} t_minidata; #endif -- cgit v1.2.3