Small fixes

This commit is contained in:
Maieul BOYER 2024-07-23 22:25:09 +00:00
parent 6adb78d6f3
commit 8cb401e1a5
2 changed files with 6 additions and 4 deletions

View file

@ -6,7 +6,7 @@
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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 #
# #
# **************************************************************************** #
@ -21,6 +21,9 @@ BUILD_DIR ?= $(shell realpath ./build/)
# TODO: ADD THIS WHEN FINISHING THIS:
#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
CFLAGS += $(CFLAGS_ADDITIONAL)

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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;