From cfaf9947227065ce40661544dff9b3554ff5aca2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 17 Aug 2020 17:22:24 +0200 Subject: Set libft/ft_is* to type t_bool --- src/p_lcom.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/p_lcom.c') diff --git a/src/p_lcom.c b/src/p_lcom.c index 0e849a0..13b4d11 100644 --- a/src/p_lcom.c +++ b/src/p_lcom.c @@ -28,15 +28,15 @@ static void rdr_err_check(char *ptr, t_com **com) { - if ((*com)->redir == -1 && ft_ischarset("><", *(ptr + 1))) + if ((*com)->redir == -1 && ft_ischarset("><", *(ptr + 1)) == TRUE) { /* TODO: syntax err */ } - else if ((*com)->redir == 1 && ft_ischarset("<", *(ptr + 1))) + else if ((*com)->redir == 1 && ft_ischarset("<", *(ptr + 1)) == TRUE) { /* TODO: syntax err */ } - else if ((*com)->redir == 2 && ft_ischarset("<>", *(ptr + 1))) + else if ((*com)->redir == 2 && ft_ischarset("<>", *(ptr + 1)) == TRUE) { /* TODO: syntax err */ } @@ -72,7 +72,7 @@ static void get_rdrfd(const char *ptr, t_com **com) { - while (ft_isdigit(*ptr)) + while (ft_isdigit(*ptr) == TRUE) { ptr--; } @@ -112,7 +112,7 @@ int8_t } if ((*com)->redir > 0) { - if (ft_isdigit(*(ptr - 1))) + if (ft_isdigit(*(ptr - 1)) == TRUE) get_rdrfd(ptr - 1, com); else (*com)->rdrfd = STDOUT_FILENO; -- cgit v1.2.3