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> +#+ +:+ +#+ # # By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2024/04/28 17:28:30 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/) BUILD_DIR ?= $(shell realpath ./build/)
# TODO: ADD THIS WHEN FINISHING THIS: # TODO: ADD THIS WHEN FINISHING THIS:
# CFLAGS_ADDITIONAL = -DNVALGRIND #CFLAGS_ADDITIONAL = -DNVALGRIND
# TODO: REMOVE THIS WHEN FINISHING THIS:
CFLAGS_ADDITIONAL += -DPRINT_BACKTRACE
# Flags # 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 = -Werror -Wextra -Wall -Wno-unused-command-line-argument -g3 -MMD -I./includes -I./output/include -I./stdme/output/include -rdynamic -Wl,-E

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */ /* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/11 18:26:32 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. */ * is in the buffer, and we can restore the terminal in normal mode. */
void line_edit_stop(t_line_state *state) void line_edit_stop(t_line_state *state)
{ {
printf("stopping\n");
string_free(state->buf); string_free(state->buf);
if (!isatty(state->input_fd->fd)) if (!isatty(state->input_fd->fd))
return; return;