renamed functions to improve readability and removed useless test files
This commit is contained in:
30
minishell.h
30
minishell.h
@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* minishell.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/04 17:31:38 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/13 15:49:02 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/02/13 16:21:55 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -42,19 +42,19 @@ typedef struct s_env
|
||||
|
||||
extern int g_return_code;
|
||||
|
||||
t_cmd *ft_cmd_add_back(t_cmd *res, char *token, t_token_type type);
|
||||
void ft_free_cmd(t_cmd *cmd);
|
||||
void ft_exec_command(t_cmd *cmd, t_env *env);
|
||||
int ft_echo(t_cmd *args);
|
||||
t_cmd *cmd_add_back(t_cmd *res, char *token, t_token_type type);
|
||||
void free_cmd(t_cmd *cmd);
|
||||
void exec_command(t_cmd *cmd, t_env *env);
|
||||
int echo(t_cmd *args);
|
||||
void ft_exit(t_cmd *args, t_env *env);
|
||||
t_env *ft_env_add_back(t_env *env, char *name, char *value);
|
||||
void ft_free_env(t_env *env);
|
||||
int ft_print_env(t_env *env);
|
||||
t_cmd *ft_parse_command(char *command, t_env *env);
|
||||
int ft_get_token_len(char *cmd, t_env *env);
|
||||
int ft_add_var_to_str(char *res, char **command, t_env *env);
|
||||
t_env *env_add_back(t_env *env, char *name, char *value);
|
||||
void free_env(t_env *env);
|
||||
int print_env(t_env *env);
|
||||
t_cmd *parse_command(char *command, t_env *env);
|
||||
int get_token_len(char *cmd, t_env *env);
|
||||
int add_var_to_str(char *res, char **command, t_env *env);
|
||||
int get_var_name_len(char *command);
|
||||
char *ft_getenv(t_env *env, char *var_name);
|
||||
int ft_pwd(void);
|
||||
int ft_is_cmd_char(char c);
|
||||
char *ft_get_env(t_env *env, char *var_name);
|
||||
int pwd(void);
|
||||
int is_cmd_char(char c);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user