From 1d7f2cc63da1a4672678e63b5223301e747ea04e Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Mon, 13 Jun 2022 11:20:51 +0500 Subject: [PATCH] Minor --- src/config.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/config.c b/src/config.c index 79ce34d..d29ae10 100644 --- a/src/config.c +++ b/src/config.c @@ -249,13 +249,7 @@ static int commands(void) static int parse(void) { -#ifndef PARSE_DEBUG - next_token(); - if (commands() == STAT_ERR) - return ERR; -#endif - -#ifdef PARSE_DEBUG +#ifdef DEBUG_LEXER while (1) { next_token(); if (token.type == TOK_EOF) @@ -274,6 +268,11 @@ static int parse(void) } } #endif +#ifndef DEBUG_LEXER + next_token(); + if (commands() == STAT_ERR) + return ERR; +#endif return OK; }