Merge remote-tracking branch 'origin/roman' into fara

This commit is contained in:
Talyx
2022-01-23 17:37:59 +03:00

View File

@@ -156,17 +156,13 @@ namespace config
else if (c == 'f') else if (c == 'f')
{ {
token.type = BOOL; token.type = BOOL;
token.value = "false"; while (std::isalpha(c))
file.seekg(4, std::ios_base::cur); {
token.value += c;
file.get(c);
}
file.seekg(-1, std::ios_base::cur);
/* token.value = ""; */
/* while (std::isalpha(c)) */
/* { */
/* token.value += c; */
/* file.get(c); */
/* } */
std::cerr << "value is: " << token.value << std::endl;
std::cerr << "c is: " << c << std::endl;
} }
else if (c == 't') else if (c == 't')
{ {
@@ -176,7 +172,7 @@ namespace config
token.value += c; token.value += c;
file.get(c); file.get(c);
} }
/* file.seekg(3, std::ios_base::cur); */ file.seekg(-1, std::ios_base::cur);
} }
else if (c == 'n') else if (c == 'n')
{ {