Normed the header of exec part
This commit is contained in:
parent
7114085b82
commit
658d5bd243
3 changed files with 13 additions and 12 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/08/14 17:57:57 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;
|
typedef struct s_subshell_result t_subshell_result;
|
||||||
struct s_subshell_result
|
struct s_subshell_result
|
||||||
{
|
{
|
||||||
t_pid pid;
|
t_pid pid;
|
||||||
int exit;
|
int exit;
|
||||||
t_fd *stdin;
|
t_fd *stdin;
|
||||||
t_fd *stdout;
|
t_fd *stdout;
|
||||||
t_fd *stderr;
|
t_fd *stderr;
|
||||||
};
|
};
|
||||||
|
|
||||||
t_error run_arithmetic_expansion(\
|
t_error run_arithmetic_expansion(\
|
||||||
|
|
@ -102,7 +102,7 @@ t_error run_pipeline(\
|
||||||
t_error run_list(\
|
t_error run_list(\
|
||||||
t_ast_list *list, t_state *state, t_list_result *out);
|
t_ast_list *list, t_state *state, t_list_result *out);
|
||||||
t_error run_subshell(\
|
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_subshell_result *out);
|
||||||
t_error run_case_(\
|
t_error run_case_(\
|
||||||
t_ast_case *case_, t_state *state, void *out);
|
t_ast_case *case_, t_state *state, void *out);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/07/24 15:45:08 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;
|
typedef struct s_expandable_str t_expandable_str;
|
||||||
|
|
||||||
struct s_expandable_str {
|
struct s_expandable_str
|
||||||
|
{
|
||||||
t_str value;
|
t_str value;
|
||||||
bool do_expand;
|
bool do_expand;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/08/10 18:43:56 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;
|
t_fd *stderr;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef t_error (*t_builtin_func)(\
|
typedef t_error (*t_builtin_func)\
|
||||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||||
|
|
||||||
t_error builtin_cd____(\
|
t_error builtin_cd____(\
|
||||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue