diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-31 05:57:48 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-31 05:57:48 -0400 |
commit | 0934612436ae2dcdb77828f89ef7d9acb3450470 (patch) | |
tree | 38ce4bad1b0f996b6745b98ec671614d4498cdf1 /src/token.cc | |
parent | 2ec8cc6b9bf6a12aefc72025011a23d7e8ef99fd (diff) | |
download | fork-ledger-0934612436ae2dcdb77828f89ef7d9acb3450470.tar.gz fork-ledger-0934612436ae2dcdb77828f89ef7d9acb3450470.tar.bz2 fork-ledger-0934612436ae2dcdb77828f89ef7d9acb3450470.zip |
Stubbed out the new definition for token_t::rewind(), which was failing.
Diffstat (limited to 'src/token.cc')
-rw-r--r-- | src/token.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/token.cc b/src/token.cc index a16bdc46..0fd2c25a 100644 --- a/src/token.cc +++ b/src/token.cc @@ -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) { +#if 0 in.seekg(- length, std::ios::cur); +#else + for (unsigned int i = 0; i < length; i++) + in.unget(); +#endif + if (in.fail()) throw_(parse_error, "Failed to rewind input stream"); } |