From 2ae54586f6dd2381e15b54fd510c7303e7ce366e Mon Sep 17 00:00:00 2001 From: salad Date: Mon, 31 Aug 2020 18:05:00 +0200 Subject: it all failed ? --- src/p_lcom_next.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/p_lcom_next.c') diff --git a/src/p_lcom_next.c b/src/p_lcom_next.c index 5e5b69d..19e3287 100644 --- a/src/p_lcom_next.c +++ b/src/p_lcom_next.c @@ -67,13 +67,11 @@ static char j = 0; if (reg == TRUE) - { while (words[j] && j < i) { p_register_word(words[j], msh); j++; } - } j = 0; while (words[i + j] != NULL) j++; @@ -94,7 +92,6 @@ static char } rewords[i - k] = 0; ft_delwords(words); - i++; return (rewords); } @@ -115,11 +112,8 @@ char ptr = words[i]; while (*ptr != '\0' && *ptr != '=') ptr++; - if (*ptr == '=') - { - reg = TRUE; - isvar = TRUE; - } + reg = (*ptr == '=') ? TRUE : FALSE; + isvar = (*ptr == '=') ? TRUE : FALSE; if (*ptr == '\0' || words[i][0] == '=' || ft_isdigit(words[i][0]) == TRUE) { -- cgit v1.2.3