DBG in CFLAGS
This commit is contained in:
parent
f2aa33ba24
commit
775a9f635e
4
Makefile
4
Makefile
@ -6,7 +6,7 @@
|
||||
# By: qmennen <qmennen@student.codam.nl> +#+ #
|
||||
# +#+ #
|
||||
# Created: 2024/10/15 11:48:46 by whaffman #+# #+# #
|
||||
# Updated: 2025/02/25 18:15:50 by whaffman ######## odam.nl #
|
||||
# Updated: 2025/02/28 01:38:14 by whaffman ######## odam.nl #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -38,7 +38,7 @@ endif
|
||||
BUILD_CONFIGS = release debug asan tsan
|
||||
|
||||
release_CFLAGS = -Wall -Werror -Werror -O2
|
||||
debug_CFLAGS = -Wall -Werror -Werror -g3 -DDEBUG
|
||||
debug_CFLAGS = -Wall -Werror -Werror -g3 -DDEBUG -DDBG='fprintf(stderr, RED "DEBUG: " RESET "%s:%d (%s)\n", __FILE__, __LINE__, __PRETTY_FUNCTION__);'
|
||||
asan_CFLAGS = -Wall -Werror -Werror -fsanitize=address,leak,undefined -g3
|
||||
tsan_CFLAGS = -Wall -Werror -Werror -fsanitize=thread -g3
|
||||
|
||||
|
||||
116
inc/minishell.h
116
inc/minishell.h
@ -1,56 +1,60 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* :::::::: */
|
||||
/* minishell.h :+: :+: */
|
||||
/* +:+ */
|
||||
/* By: marvin <marvin@student.42.fr> +#+ */
|
||||
/* +#+ */
|
||||
/* Created: 2025/02/04 16:13:13 by whaffman #+# #+# */
|
||||
/* Updated: 2025/02/23 12:28:23 by Quinten ######## odam.nl */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef MINISHELL_H
|
||||
# define MINISHELL_H
|
||||
|
||||
# include "allowed.h"
|
||||
# include "libft.h"
|
||||
# include "typedef.h"
|
||||
# include "signals.h"
|
||||
# include "environment.h"
|
||||
# include "prompt.h"
|
||||
# include "tokenizer.h"
|
||||
# include "builtin.h"
|
||||
# include "executor.h"
|
||||
# include "parser.h"
|
||||
# include "expander.h"
|
||||
# include "redirect.h"
|
||||
# include "debug.h"
|
||||
# include "utils.h"
|
||||
|
||||
# define TRUE 1
|
||||
# define FALSE 0
|
||||
|
||||
# define SUCCESS 1
|
||||
# define FAILURE 0
|
||||
|
||||
# define BOLD "\001\033[1m\002"
|
||||
# define RED "\001\033[0;31m\002"
|
||||
# define GREEN "\001\033[0;32m\002"
|
||||
# define YELLOW "\001\033[0;33m\002"
|
||||
# define BLUE "\001\033[0;34m\002"
|
||||
# define MAGENTA "\001\033[0;35m\002"
|
||||
# define CYAN "\001\033[0;36m\002"
|
||||
# define RESET "\001\033[0m\002"
|
||||
# define PROMPT RESET "🐚" GREEN "minishell" RESET ": "
|
||||
# define PROMPT_LEN 51
|
||||
|
||||
# ifdef DEBUG
|
||||
# define DEBUG 1
|
||||
# else
|
||||
# define DEBUG 0
|
||||
# endif // DEBUG
|
||||
|
||||
void token_print(void *param);
|
||||
|
||||
#endif
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* :::::::: */
|
||||
/* minishell.h :+: :+: */
|
||||
/* +:+ */
|
||||
/* By: marvin <marvin@student.42.fr> +#+ */
|
||||
/* +#+ */
|
||||
/* Created: 2025/02/04 16:13:13 by whaffman #+# #+# */
|
||||
/* Updated: 2025/02/28 01:36:31 by whaffman ######## odam.nl */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef MINISHELL_H
|
||||
# define MINISHELL_H
|
||||
|
||||
# include "allowed.h"
|
||||
# include "libft.h"
|
||||
# include "typedef.h"
|
||||
# include "signals.h"
|
||||
# include "environment.h"
|
||||
# include "prompt.h"
|
||||
# include "tokenizer.h"
|
||||
# include "builtin.h"
|
||||
# include "executor.h"
|
||||
# include "parser.h"
|
||||
# include "expander.h"
|
||||
# include "redirect.h"
|
||||
# include "debug.h"
|
||||
# include "utils.h"
|
||||
|
||||
# define TRUE 1
|
||||
# define FALSE 0
|
||||
|
||||
# define SUCCESS 1
|
||||
# define FAILURE 0
|
||||
|
||||
# define BOLD "\001\033[1m\002"
|
||||
# define RED "\001\033[0;31m\002"
|
||||
# define GREEN "\001\033[0;32m\002"
|
||||
# define YELLOW "\001\033[0;33m\002"
|
||||
# define BLUE "\001\033[0;34m\002"
|
||||
# define MAGENTA "\001\033[0;35m\002"
|
||||
# define CYAN "\001\033[0;36m\002"
|
||||
# define RESET "\001\033[0m\002"
|
||||
# define PROMPT RESET "🐚" GREEN "minishell" RESET ": "
|
||||
# define PROMPT_LEN 51
|
||||
|
||||
# ifndef DBG
|
||||
# define DBG
|
||||
# endif
|
||||
|
||||
# ifdef DEBUG
|
||||
# define DEBUG 1
|
||||
# else
|
||||
# define DEBUG 0
|
||||
# endif // DEBUG
|
||||
|
||||
void token_print(void *param);
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user