From 8cb401e1a5ea21ee6db2f3b7875c27d0374b6ae6 Mon Sep 17 00:00:00 2001 From: Maieul BOYER Date: Tue, 23 Jul 2024 22:25:09 +0000 Subject: [PATCH] Small fixes --- Minishell.mk | 7 +++++-- line/src/line_edit_mode.c | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Minishell.mk b/Minishell.mk index 812754cf..6c617f7c 100644 --- a/Minishell.mk +++ b/Minishell.mk @@ -6,7 +6,7 @@ # By: maiboyer +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2024/04/28 17:28:30 by maiboyer #+# #+# # -# Updated: 2024/07/23 21:54:12 by maiboyer ### ########.fr # +# Updated: 2024/07/23 22:23:57 by maiboyer ### ########.fr # # # # **************************************************************************** # @@ -19,7 +19,10 @@ ANAME = sh BUILD_DIR ?= $(shell realpath ./build/) # TODO: ADD THIS WHEN FINISHING THIS: -# CFLAGS_ADDITIONAL = -DNVALGRIND +#CFLAGS_ADDITIONAL = -DNVALGRIND + +# TODO: REMOVE THIS WHEN FINISHING THIS: +CFLAGS_ADDITIONAL += -DPRINT_BACKTRACE # Flags CFLAGS = -Werror -Wextra -Wall -Wno-unused-command-line-argument -g3 -MMD -I./includes -I./output/include -I./stdme/output/include -rdynamic -Wl,-E diff --git a/line/src/line_edit_mode.c b/line/src/line_edit_mode.c index cce2679b..eec28f05 100644 --- a/line/src/line_edit_mode.c +++ b/line/src/line_edit_mode.c @@ -6,7 +6,7 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/11 18:26:32 by maiboyer #+# #+# */ -/* Updated: 2024/07/23 22:19:04 by maiboyer ### ########.fr */ +/* Updated: 2024/07/23 22:24:59 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ @@ -204,7 +204,6 @@ bool line_edit_feed(t_line_state *state, t_str *out) * is in the buffer, and we can restore the terminal in normal mode. */ void line_edit_stop(t_line_state *state) { - printf("stopping\n"); string_free(state->buf); if (!isatty(state->input_fd->fd)) return;