merged from master!
This commit is contained in:
commit
b4c6aed6c4
15 changed files with 210 additions and 19 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/04 18:41:01 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/04 19:08:13 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/09 14:28:42 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/28 18:35:22 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/04/30 16:41:44 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/09 16:23:54 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
22
includes/app/node/handle_command.h
Normal file
22
includes/app/node/handle_command.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* handle_command.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/09 14:42:43 by rparodi #+# #+# */
|
||||
/* Updated: 2024/05/09 14:59:28 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HANDLE_COMMAND_H
|
||||
# define HANDLE_COMMAND_H
|
||||
|
||||
# include "me/types.h"
|
||||
# include "app/state.h"
|
||||
# include "app/node.h"
|
||||
|
||||
t_error handle_command(t_node *self, t_utils *shcat, t_i32 *out_exit_code);
|
||||
|
||||
#endif
|
||||
22
includes/app/node/handle_program.h
Normal file
22
includes/app/node/handle_program.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* handle_program.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/09 14:42:43 by rparodi #+# #+# */
|
||||
/* Updated: 2024/05/09 15:51:11 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HANDLE_PROGRAM_H
|
||||
# define HANDLE_PROGRAM_H
|
||||
|
||||
# include "me/types.h"
|
||||
# include "app/state.h"
|
||||
# include "app/node.h"
|
||||
|
||||
t_error handle_program(t_node *self, t_utils *shcat, t_i32 *out_exit_code);
|
||||
|
||||
#endif
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 15:49:56 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/04 18:40:53 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/09 16:23:54 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
#include "app/node.h"
|
||||
#include "me/hashmap/hashmap_env.h"
|
||||
#include "me/types.h"
|
||||
#include "me/os/process.h"
|
||||
|
||||
typedef struct s_parser
|
||||
{
|
||||
|
|
@ -24,13 +25,14 @@ typedef struct s_parser
|
|||
|
||||
typedef struct s_utils
|
||||
{
|
||||
t_str name_shell;
|
||||
t_str str_input;
|
||||
t_str *strs_input;
|
||||
t_str *path;
|
||||
t_parser parser;
|
||||
t_hashmap_env *env;
|
||||
t_node current_node;
|
||||
t_str name_shell;
|
||||
t_str str_input;
|
||||
t_str *strs_input;
|
||||
t_str *path;
|
||||
t_parser parser;
|
||||
t_hashmap_env *env;
|
||||
t_node current_node;
|
||||
t_process ret;
|
||||
} t_utils;
|
||||
|
||||
#endif /* STATE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue