minishell/includes/app/state.h
2024-10-12 15:38:33 +02:00

33 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* state.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/02 15:49:56 by maiboyer #+# #+# */
/* Updated: 2024/10/12 15:35:52 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef STATE_H
# define STATE_H
# include "ast/ast.h"
# include "me/hashmap/hashmap_env.h"
# include "me/os/os.h"
# include "me/types.h"
typedef struct s_state t_state;
struct s_state
{
t_ast_node ast;
t_const_str prompt;
t_hashmap_env *env;
t_hashmap_env *tmp_var;
t_i32 last_exit;
t_str str_input;
};
#endif /* STATE_H */