norme headers

+ add -Werror flag in Makefile
This commit is contained in:
lperrey
2021-12-20 17:56:35 +01:00
parent 8959166804
commit 11d2f36307
3 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ NAME = minishell
CC = clang CC = clang
CFLAGS = -Wall -Wextra $(INCLUDES) -g # add -Werror, del -g CFLAGS = -Wall -Wextra -Werror $(INCLUDES) -g # del -g
VPATH = $(DIR_SRCS) VPATH = $(DIR_SRCS)
DIR_SRCS = srcs \ DIR_SRCS = srcs \

View File

@@ -6,15 +6,15 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */ /* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */ /* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/12/20 15:07:39 by hulamy ### ########.fr */ /* Updated: 2021/12/20 17:49:56 by lperrey ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#ifndef MINISHELL_PROTOTYPES_H #ifndef MINISHELL_PROTOTYPES_H
# define MINISHELL_PROTOTYPES_H # define MINISHELL_PROTOTYPES_H
extern int g_switch_heredoc_sigint; extern int g_switch_heredoc_sigint;
extern char **environ; extern char **environ;
// Init // Init
int init(t_all *c, char *argv[]); int init(t_all *c, char *argv[]);
@@ -97,7 +97,7 @@ void sigint_handler_interactive(int signum);
void sigint_handler_heredoc(int signum); void sigint_handler_heredoc(int signum);
// last_exit_status // last_exit_status
int set_last_exit_status(int new_value); int set_last_exit_status(int new_value);
int get_last_exit_status(void); int get_last_exit_status(void);
#endif #endif

View File

@@ -6,14 +6,14 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */ /* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */ /* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
/* Updated: 2021/12/16 06:34:29 by lperrey ### ########.fr */ /* Updated: 2021/12/20 17:24:45 by lperrey ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#ifndef MINISHELL_STRUCTS_H #ifndef MINISHELL_STRUCTS_H
# define MINISHELL_STRUCTS_H # define MINISHELL_STRUCTS_H
struct s_all; struct s_all;
typedef struct s_token typedef struct s_token
{ {