diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-24 16:43:46 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-24 16:43:46 +0100 |
commit | 991e3a3eaf2c31f856faa85cfed514bbb28be526 (patch) | |
tree | 56bfc7e97de0b0b7855a2dea180f43f6c828d16a /src/global.cc | |
parent | 77d69d0e240287a104223a2c32b10d70ed58ca7b (diff) | |
download | fork-ledger-991e3a3eaf2c31f856faa85cfed514bbb28be526.tar.gz fork-ledger-991e3a3eaf2c31f856faa85cfed514bbb28be526.tar.bz2 fork-ledger-991e3a3eaf2c31f856faa85cfed514bbb28be526.zip |
Split commodity.h/cc into three files
commodity.h - code for commodity_t
annotate.h - commodity annotations
pool.h - commodity pool management
Diffstat (limited to 'src/global.cc')
-rw-r--r-- | src/global.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/global.cc b/src/global.cc index 5d5e5836..26ee9ad7 100644 --- a/src/global.cc +++ b/src/global.cc @@ -39,6 +39,7 @@ #endif #include "item.h" #include "journal.h" +#include "pool.h" namespace ledger { @@ -416,19 +417,18 @@ void global_scope_t::normalize_report_options(const string& verb) report_t& rep(report()); // jww (2009-02-09): These globals are a hack, but hard to avoid. - item_t::use_effective_date = rep.HANDLED(effective); - rep.session.commodity_pool->keep_base = rep.HANDLED(base); - - commodity_t::download_quotes = rep.session.HANDLED(download); + item_t::use_effective_date = rep.HANDLED(effective); + rep.session.commodity_pool->keep_base = rep.HANDLED(base); + rep.session.commodity_pool->download_quotes = rep.session.HANDLED(download); if (rep.session.HANDLED(price_exp_)) - commodity_t::download_leeway = + rep.session.commodity_pool->download_leeway = rep.session.HANDLER(price_exp_).value.as_long(); if (rep.session.HANDLED(price_db_)) - commodity_t::price_db = rep.session.HANDLER(price_db_).str(); + rep.session.commodity_pool->price_db = rep.session.HANDLER(price_db_).str(); else - commodity_t::price_db = none; + rep.session.commodity_pool->price_db = none; if (rep.HANDLED(date_format_)) { output_datetime_format = rep.HANDLER(date_format_).str() + " %H:%M:%S"; |