diff --git a/includes/environment.h b/includes/environment.h index 86e1657..314b149 100644 --- a/includes/environment.h +++ b/includes/environment.h @@ -6,7 +6,7 @@ /* By: juligonz +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/08/18 17:35:53 by juligonz #+# #+# */ -/* Updated: 2020/08/22 16:03:02 by juligonz ### ########.fr */ +/* Updated: 2020/09/17 02:40:02 by juligonz ### ########.fr */ /* */ /* ************************************************************************** */ @@ -23,7 +23,7 @@ typedef const char** t_environment; t_environment malloc_environment(t_environment envp); void free_environment(t_environment to_free); void add_environment_variable(char *variable); -void remove_environment_variable(char *name); +void remove_environment_variable(char *name); size_t environment_len(t_environment envp); /* diff --git a/includes/error.h b/includes/error.h index 91c98c1..6e8f167 100644 --- a/includes/error.h +++ b/includes/error.h @@ -3,18 +3,18 @@ /* ::: :::::::: */ /* error.h :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: hwinston +#+ +:+ +#+ */ +/* By: juligonz +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/08/16 14:41:28 by hwinston #+# #+# */ -/* Updated: 2020/08/30 12:10:15 by hwinston ### ########.fr */ +/* Updated: 2020/09/17 02:39:47 by juligonz ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef ERROR_H # define ERROR_H -void error(char *cmd, const char *arg); -void bad_command(char *cmd); -int permission_error(char *command, int option); +void error(char *cmd, const char *arg); +void bad_command(char *cmd); +int permission_error(char *command, int option); #endif diff --git a/includes/redirection.h b/includes/redirection.h index 3ea580a..29c81bf 100644 --- a/includes/redirection.h +++ b/includes/redirection.h @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* redirection.h :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: hwinston +#+ +:+ +#+ */ +/* By: juligonz +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/08/31 15:00:10 by juligonz #+# #+# */ -/* Updated: 2020/09/13 11:50:01 by hwinston ### ########.fr */ +/* Updated: 2020/09/17 02:40:31 by juligonz ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,19 +15,19 @@ # include "minishell.h" -typedef enum e_redirection_type +typedef enum e_redirection_type { Redirection_None, Redirection_great, Redirection_dgreat, Redirection_less, -} t_redirection_type; +} t_redirection_type; -typedef struct s_redirection +typedef struct s_redirection { char *str; t_redirection_type type; -} t_redirection; +} t_redirection; /* ** redirection.c diff --git a/srcs/builtins/internal_builtins/exit_builtin.c b/srcs/builtins/internal_builtins/exit_builtin.c index f7c3072..9d9068d 100644 --- a/srcs/builtins/internal_builtins/exit_builtin.c +++ b/srcs/builtins/internal_builtins/exit_builtin.c @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* exit_builtin.c :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: hwinston +#+ +:+ +#+ */ +/* By: juligonz +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/08/23 13:40:40 by hwinston #+# #+# */ -/* Updated: 2020/09/13 17:53:11 by hwinston ### ########.fr */ +/* Updated: 2020/09/17 02:41:45 by juligonz ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,8 +14,8 @@ static int is_valid(const char *s) { - int i; - int sign; + int i; + int sign; unsigned long int res; i = 0;