mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 05:17:59 +03:00
Merge remote-tracking branch 'origin/roman' into fara
This commit is contained in:
@@ -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')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user