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 /walk.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 'walk.cc')
-rw-r--r-- | walk.cc | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -240,19 +240,19 @@ void invert_xacts::operator()(xact_t& xact) static inline -void handle_value(const value_t& value, - account_t * account, - entry_t * entry, - unsigned int flags, +void handle_value(const value_t& value, + account_t * account, + entry_t * entry, + unsigned int flags, std::list<xact_t>& temps, item_handler<xact_t>& handler, - const datetime_t& date = datetime_t(), + const datetime_t& date = datetime_t(), xacts_list * component_xacts = NULL) { temps.push_back(xact_t(account)); xact_t& xact(temps.back()); xact.entry = entry; - xact.add_flags(XACT_BULK_ALLOC); + xact.add_flags(XACT_TEMP); entry->add_xact(&xact); // If there are component xacts to associate with this @@ -625,7 +625,7 @@ void set_comm_as_payee::operator()(xact_t& xact) xact_t& temp = xact_temps.back(); temp.entry = &entry; temp.state = xact.state; - temp.add_flags(XACT_BULK_ALLOC); + temp.add_flags(XACT_TEMP); entry.add_xact(&temp); @@ -647,7 +647,7 @@ void set_code_as_payee::operator()(xact_t& xact) xact_t& temp = xact_temps.back(); temp.entry = &entry; temp.state = xact.state; - temp.add_flags(XACT_BULK_ALLOC); + temp.add_flags(XACT_TEMP); entry.add_xact(&temp); @@ -727,7 +727,7 @@ void budget_xacts::report_budget_items(const datetime_t& moment) xact_temps.push_back(xact); xact_t& temp = xact_temps.back(); temp.entry = &entry; - temp.add_flags(XACT_AUTO | XACT_BULK_ALLOC); + temp.add_flags(XACT_AUTO | XACT_TEMP); temp.amount.negate(); entry.add_xact(&temp); @@ -817,7 +817,7 @@ void forecast_xacts::flush() xact_temps.push_back(xact); xact_t& temp = xact_temps.back(); temp.entry = &entry; - temp.add_flags(XACT_AUTO | XACT_BULK_ALLOC); + temp.add_flags(XACT_AUTO | XACT_TEMP); entry.add_xact(&temp); datetime_t next = (*least).first.increment(begin); @@ -995,7 +995,7 @@ void walk_commodities(commodity_pool_t::commodities_by_ident& commodities, xact_t& temp = xact_temps.back(); temp.entry = &entry_temps.back(); temp.amount = (*j).second; - temp.add_flags(XACT_BULK_ALLOC); + temp.add_flags(XACT_TEMP); entry_temps.back().add_xact(&temp); handler(xact_temps.back()); |