diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-31 04:28:58 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-31 04:28:58 -0400 |
commit | 8276b51f5692796bfdf75dd64f709e0de1c7caaf (patch) | |
tree | 8f2a964080d2ee7e90400e158d3f89e9ffdbfa75 /main.cc | |
parent | 208c414ab9600eca4852034a923418948629ced0 (diff) | |
download | fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.gz fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.bz2 fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.zip |
A new binary_cache_t object has been creating to manage saving and restoring a
Ledger session from a cache file. It doesn't work at all yet, though at least
the major structures are in place now.
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -310,6 +310,7 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[], if (DO_VERIFY() && report.output_file) checked_delete(out); +#if 0 // Write out the binary cache, if need be if (session.use_cache && session.cache_dirty && session.cache_file) { @@ -320,6 +321,7 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[], TRACE_FINISH(binary_cache, 1); } +#endif // If the user specified a pager, wait for it to exit now @@ -396,7 +398,9 @@ int main(int argc, char * argv[], char * envp[]) ledger::set_session_context(session.get()); +#if 0 session->register_parser(new ledger::journal_t::binary_parser_t); +#endif #if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) session->register_parser(new ledger::xml_parser_t); session->register_parser(new ledger::gnucash_parser_t); |