pushed
This commit is contained in:
parent
5778b13f72
commit
5c7b8cde0d
8 changed files with 174 additions and 74 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/02 15:49:56 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/09 16:23:54 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/07/12 18:44:18 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ typedef struct s_parser
|
|||
t_first_parser *parser;
|
||||
} t_parser;
|
||||
|
||||
typedef struct s_utils
|
||||
typedef struct s_state
|
||||
{
|
||||
t_str name_shell;
|
||||
t_str str_input;
|
||||
|
|
@ -33,6 +33,6 @@ typedef struct s_utils
|
|||
t_hashmap_env *env;
|
||||
t_node current_node;
|
||||
t_process ret;
|
||||
} t_utils;
|
||||
} t_state;
|
||||
|
||||
#endif /* STATE_H */
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#define PATH_FILES "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
|
||||
|
||||
t_i32 main(t_i32 argc, t_str argv[], t_str arge[]);
|
||||
void ft_other_cmd(t_utils *shcat, t_usize i, t_usize prev_i);
|
||||
void ft_other_cmd(t_state *shcat, t_usize i, t_usize prev_i);
|
||||
t_i32 ft_strcmp(const char *s1, const char *s2);
|
||||
t_i32 ft_check_type_operators(t_str operators);
|
||||
t_str *ft_split(t_const_str s, t_i8 c);
|
||||
|
|
@ -39,9 +39,9 @@ void ft_bzero(void *s, t_usize n);
|
|||
void ft_free_strs(t_str *strs);
|
||||
void ft_pwd(void);
|
||||
void ft_echo(t_str txt, t_str flag);
|
||||
void ft_exit(t_utils *maiboyerlpb, t_u8 exit_status);
|
||||
void ft_exit(t_state *maiboyerlpb, t_u8 exit_status);
|
||||
void ft_free(void *ptr);
|
||||
|
||||
t_error handle_node_getstr(t_node *self, t_utils *shcat, t_str *out);
|
||||
t_error handle_node_getstr(t_node *self, t_state *shcat, t_str *out);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue