diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-17 17:22:24 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-17 17:22:24 +0200 |
commit | cfaf9947227065ce40661544dff9b3554ff5aca2 (patch) | |
tree | e0d5da338e8df09c71c47405f5558cb67aac1cf8 /src/p_lcom.c | |
parent | Updated TODO list (diff) | |
download | 42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.gz 42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.bz2 42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.xz 42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.zst 42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.zip |
Set libft/ft_is* to type t_bool
Diffstat (limited to 'src/p_lcom.c')
-rw-r--r-- | src/p_lcom.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |