From 658d5bd243b8379b24bbe8abf32977c467241d37 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 30 Aug 2024 18:22:27 +0200 Subject: [PATCH] Normed the header of exec part --- exec/include/exec/_run_ast.h | 14 +++++++------- exec/include/exec/_tuple_expanded_str.h | 5 +++-- exec/include/exec/builtins.h | 6 +++--- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/exec/include/exec/_run_ast.h b/exec/include/exec/_run_ast.h index 60cd7fa5..f483ecdf 100644 --- a/exec/include/exec/_run_ast.h +++ b/exec/include/exec/_run_ast.h @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/08/14 17:57:57 by rparodi #+# #+# */ -/* Updated: 2024/08/14 18:16:02 by maiboyer ### ########.fr */ +/* Updated: 2024/08/30 18:05:23 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -79,11 +79,11 @@ struct s_list_result typedef struct s_subshell_result t_subshell_result; struct s_subshell_result { - t_pid pid; - int exit; - t_fd *stdin; - t_fd *stdout; - t_fd *stderr; + t_pid pid; + int exit; + t_fd *stdin; + t_fd *stdout; + t_fd *stderr; }; t_error run_arithmetic_expansion(\ @@ -102,7 +102,7 @@ t_error run_pipeline(\ t_error run_list(\ t_ast_list *list, t_state *state, t_list_result *out); t_error run_subshell(\ - t_ast_subshell *subshell, t_state *state, t_cmd_pipe cmd_pipe,\ + t_ast_subshell *subshell, t_state *state, t_cmd_pipe cmd_pipe, \ t_subshell_result *out); t_error run_case_(\ t_ast_case *case_, t_state *state, void *out); diff --git a/exec/include/exec/_tuple_expanded_str.h b/exec/include/exec/_tuple_expanded_str.h index 6905e68a..790a91a0 100644 --- a/exec/include/exec/_tuple_expanded_str.h +++ b/exec/include/exec/_tuple_expanded_str.h @@ -6,7 +6,7 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/24 15:45:08 by maiboyer #+# #+# */ -/* Updated: 2024/08/05 15:13:17 by maiboyer ### ########.fr */ +/* Updated: 2024/08/30 18:22:13 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,7 +17,8 @@ typedef struct s_expandable_str t_expandable_str; -struct s_expandable_str { +struct s_expandable_str +{ t_str value; bool do_expand; }; diff --git a/exec/include/exec/builtins.h b/exec/include/exec/builtins.h index 2a96a8a3..568c2491 100644 --- a/exec/include/exec/builtins.h +++ b/exec/include/exec/builtins.h @@ -6,7 +6,7 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/08/10 18:43:56 by maiboyer #+# #+# */ -/* Updated: 2024/08/14 16:42:10 by rparodi ### ########.fr */ +/* Updated: 2024/08/30 18:22:17 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -30,8 +30,8 @@ struct s_builtin_spawn_info t_fd *stderr; }; -typedef t_error (*t_builtin_func)(\ - t_state *state, t_builtin_spawn_info info, t_i32 *exit_code); +typedef t_error (*t_builtin_func)\ + (t_state *state, t_builtin_spawn_info info, t_i32 *exit_code); t_error builtin_cd____(\ t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);