38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* state.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/05/02 15:49:56 by maiboyer #+# #+# */
|
|
/* Updated: 2024/07/12 18:44:18 by maiboyer ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef STATE_H
|
|
# define STATE_H
|
|
|
|
# include "app/node.h"
|
|
# include "me/hashmap/hashmap_env.h"
|
|
# include "me/os/process.h"
|
|
# include "me/types.h"
|
|
|
|
typedef struct s_parser
|
|
{
|
|
t_first_parser *parser;
|
|
} t_parser;
|
|
|
|
typedef struct s_state
|
|
{
|
|
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_state;
|
|
|
|
#endif /* STATE_H */
|