Stubbed out the new definition for token_t::rewind(), which was failing.
This commit is contained in:
parent
2ec8cc6b9b
commit
0934612436
1 changed files with 6 additions and 0 deletions
|
|
@ -402,7 +402,13 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags)
|
||||||
|
|
||||||
void expr_t::token_t::rewind(std::istream& in)
|
void expr_t::token_t::rewind(std::istream& in)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
in.seekg(- length, std::ios::cur);
|
in.seekg(- length, std::ios::cur);
|
||||||
|
#else
|
||||||
|
for (unsigned int i = 0; i < length; i++)
|
||||||
|
in.unget();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (in.fail())
|
if (in.fail())
|
||||||
throw_(parse_error, "Failed to rewind input stream");
|
throw_(parse_error, "Failed to rewind input stream");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue