bc: comment out code which appears to be never reached
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Dec 2018 17:59:42 +0000 (18:59 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Dec 2018 17:59:42 +0000 (18:59 +0100)
function                                             old     new   delta
zbc_lex_next                                        1587    1568     -19

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c

index 632158b7f94a97c4973172fbbe81db21d6f0c403..2237a41b5899354520355e82ce37a77d557c4945 100644 (file)
@@ -2901,8 +2901,9 @@ static BC_STATUS zbc_lex_next(void)
        BcStatus s;
 
        p->lex_last = p->lex;
-       if (p->lex_last == XC_LEX_EOF)
-               RETURN_STATUS(bc_error("end of file"));
+//why?
+//     if (p->lex_last == XC_LEX_EOF)
+//             RETURN_STATUS(bc_error("end of file"));
 
        // Loop until failure or we don't have whitespace. This
        // is so the parser doesn't get inundated with whitespace.