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/value.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/value.cc')
-rw-r--r-- | src/value.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc index df1731cd..54d4bfc2 100644 --- a/src/value.cc +++ b/src/value.cc @@ -33,6 +33,8 @@ #include "value.h" #include "commodity.h" +#include "annotate.h" +#include "pool.h" #include "unistring.h" namespace ledger { @@ -1240,7 +1242,7 @@ value_t value_t::exchange_commodities(const std::string& commodities, p; p = std::strtok(NULL, ",")) { if (commodity_t * commodity = - amount_t::current_pool->parse_commodity_prices(p, add_prices, moment)) { + amount_t::current_pool->parse_price_expression(p, add_prices, moment)) { value_t result = value(false, moment, *commodity); if (! result.is_null()) return result; |