From 2c7d6390ecac020288e0e0563ed8bf721f2eb6b9 Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Mon, 25 Mar 2019 12:56:56 +0100 Subject: [PATCH] Added comments for bug fixes and improvements --- src/app/CFGFileParser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/CFGFileParser.cpp b/src/app/CFGFileParser.cpp index 6241583..7f1b4f0 100644 --- a/src/app/CFGFileParser.cpp +++ b/src/app/CFGFileParser.cpp @@ -35,7 +35,7 @@ void *CFGFileParser::parseFile() if(parsedParameter == NULL) _state = ERROR; //printf("%c",readChar); - } + }//Add case when we start with a single quote (allowed and not an error) else _state = ERROR; break; @@ -138,7 +138,8 @@ void *CFGFileParser::parseFile() case SEPARATION: _type = VALUE; if(readChar == '\'')_state = OPENING_QUOTE; - else _state = PARAM_SECTION; + //Add the usual verification (readChar >= 65 && readChar <= 90) || (readChar >= 97 && readChar <= 122) || (readChar >= 48 && readChar <= 57) + else _state = PARAM_SECTION; //Should be an error break; case ERROR: dictioRef->dispose();