norme headers
+ add -Werror flag in Makefile
This commit is contained in:
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@ NAME = minishell
|
||||
|
||||
CC = clang
|
||||
|
||||
CFLAGS = -Wall -Wextra $(INCLUDES) -g # add -Werror, del -g
|
||||
CFLAGS = -Wall -Wextra -Werror $(INCLUDES) -g # del -g
|
||||
|
||||
VPATH = $(DIR_SRCS)
|
||||
DIR_SRCS = srcs \
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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
|
||||
# define MINISHELL_PROTOTYPES_H
|
||||
|
||||
extern int g_switch_heredoc_sigint;
|
||||
extern char **environ;
|
||||
extern int g_switch_heredoc_sigint;
|
||||
extern char **environ;
|
||||
|
||||
// Init
|
||||
int init(t_all *c, char *argv[]);
|
||||
@@ -97,7 +97,7 @@ void sigint_handler_interactive(int signum);
|
||||
void sigint_handler_heredoc(int signum);
|
||||
|
||||
// last_exit_status
|
||||
int set_last_exit_status(int new_value);
|
||||
int get_last_exit_status(void);
|
||||
int set_last_exit_status(int new_value);
|
||||
int get_last_exit_status(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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
|
||||
# define MINISHELL_STRUCTS_H
|
||||
|
||||
struct s_all;
|
||||
struct s_all;
|
||||
|
||||
typedef struct s_token
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user