Normed the includes of exec
This commit is contained in:
parent
4e56302770
commit
241a382c43
4 changed files with 136 additions and 101 deletions
|
|
@ -6,39 +6,48 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/10 18:43:56 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/08/11 12:01:18 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/08/14 16:42:10 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef BUILTINS_H
|
||||
#define BUILTINS_H
|
||||
# define BUILTINS_H
|
||||
|
||||
#include "app/env.h"
|
||||
#include "app/state.h"
|
||||
#include "exec/_run_ast.h"
|
||||
#include "me/os/os.h"
|
||||
#include "me/types.h"
|
||||
#include "me/vec/vec_str.h"
|
||||
# include "app/env.h"
|
||||
# include "app/state.h"
|
||||
# include "exec/_run_ast.h"
|
||||
# include "me/os/os.h"
|
||||
# include "me/types.h"
|
||||
# include "me/vec/vec_str.h"
|
||||
|
||||
typedef struct s_builtin_spawn_info t_builtin_spawn_info;
|
||||
typedef struct s_builtin_spawn_info t_builtin_spawn_info;
|
||||
|
||||
struct s_builtin_spawn_info
|
||||
{
|
||||
t_vec_str args;
|
||||
t_fd *stdin;
|
||||
t_fd *stdout;
|
||||
t_fd *stderr;
|
||||
t_vec_str args;
|
||||
t_fd *stdin;
|
||||
t_fd *stdout;
|
||||
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);
|
||||
t_error builtin_echo__(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_env___(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_exit__(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_export(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_pwd___(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_unset_(t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_debug_(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);
|
||||
t_error builtin_echo__(\
|
||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_env___(\
|
||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_exit__(\
|
||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_export(\
|
||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_pwd___(\
|
||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_unset_(\
|
||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
t_error builtin_debug_(\
|
||||
t_state *state, t_builtin_spawn_info info, t_i32 *exit_code);
|
||||
|
||||
#endif /* BUILTINS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue