Added comments for bug fixes and improvements

This commit is contained in:
Th3maz1ng 2019-03-25 12:56:56 +01:00
parent 972f0888da
commit 2c7d6390ec

View File

@ -35,7 +35,7 @@ void *CFGFileParser::parseFile()
if(parsedParameter == NULL) if(parsedParameter == NULL)
_state = ERROR; _state = ERROR;
//printf("%c",readChar); //printf("%c",readChar);
} }//Add case when we start with a single quote (allowed and not an error)
else else
_state = ERROR; _state = ERROR;
break; break;
@ -138,7 +138,8 @@ void *CFGFileParser::parseFile()
case SEPARATION: case SEPARATION:
_type = VALUE; _type = VALUE;
if(readChar == '\'')_state = OPENING_QUOTE; 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; break;
case ERROR: case ERROR:
dictioRef->dispose(); dictioRef->dispose();