summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-19 16:24:06 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-19 16:24:06 -0400
commit60f9748da1a316943229087860b74ed48f9bc657 (patch)
treefa0f843c733856f5130607d4000a66ae05c52514 /src/amount.h
parent0ec53e4a6cfa37f4de3e2e696bb1e8aeabfc8386 (diff)
downloadfork-ledger-60f9748da1a316943229087860b74ed48f9bc657.tar.gz
fork-ledger-60f9748da1a316943229087860b74ed48f9bc657.tar.bz2
fork-ledger-60f9748da1a316943229087860b74ed48f9bc657.zip
Create an unrounded global amount variable 'one' for creating inverse price
mappings.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index 0a9038f2..0667d9c3 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -722,6 +722,8 @@ public:
bool valid() const;
};
+extern amount_t * one;
+
inline amount_t amount_t::exact(const string& value) {
amount_t temp;
temp.parse(value, AMOUNT_PARSE_NO_MIGRATE);