Skip to content

Commit

Permalink
norm
Browse files Browse the repository at this point in the history
  • Loading branch information
ggjulio committed Sep 17, 2020
1 parent 73004c5 commit db707cc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions includes/environment.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: juligonz <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 */
/* */
/* ************************************************************************** */

Expand All @@ -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);

/*
Expand Down
10 changes: 5 additions & 5 deletions includes/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
/* ::: :::::::: */
/* error.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hwinston <hwinston@student.42.fr> +#+ +:+ +#+ */
/* By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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
12 changes: 6 additions & 6 deletions includes/redirection.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* redirection.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hwinston <hwinston@student.42.fr> +#+ +:+ +#+ */
/* By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 */
/* */
/* ************************************************************************** */

Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions srcs/builtins/internal_builtins/exit_builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
/* ::: :::::::: */
/* exit_builtin.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hwinston <hwinston@student.42.fr> +#+ +:+ +#+ */
/* By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 */
/* */
/* ************************************************************************** */

#include "minishell.h"

static int is_valid(const char *s)
{
int i;
int sign;
int i;
int sign;
unsigned long int res;

i = 0;
Expand Down

0 comments on commit db707cc

Please sign in to comment.