summaryrefslogtreecommitdiff
path: root/valexpr.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-11-09 07:11:22 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:21 -0400
commite1d0dbf220a5301f6125a1548a380492ad488515 (patch)
treedf7a5de60353d3558b00d21ee83cf01e8da56331 /valexpr.h
parent6f4957c8c31395bca44d078972690eb2b3258a8f (diff)
downloadfork-ledger-e1d0dbf220a5301f6125a1548a380492ad488515.tar.gz
fork-ledger-e1d0dbf220a5301f6125a1548a380492ad488515.tar.bz2
fork-ledger-e1d0dbf220a5301f6125a1548a380492ad488515.zip
Restructed the code that it can build and be used as a shared library.
The command-line version is still statically bound in the build process by default (for the sake of speed).
Diffstat (limited to 'valexpr.h')
-rw-r--r--valexpr.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/valexpr.h b/valexpr.h
index 1c015201..ff12cae6 100644
--- a/valexpr.h
+++ b/valexpr.h
@@ -20,10 +20,7 @@ struct details_t
: entry(&_entry), xact(NULL), account(NULL) {
DEBUG_PRINT("ledger.memory.ctors", "ctor details_t");
}
- details_t(const transaction_t& _xact)
- : entry(_xact.entry), xact(&_xact), account(_xact.account) {
- DEBUG_PRINT("ledger.memory.ctors", "ctor details_t");
- }
+ details_t(const transaction_t& _xact);
details_t(const account_t& _account)
: entry(NULL), xact(NULL), account(&_account) {
DEBUG_PRINT("ledger.memory.ctors", "ctor details_t");
@@ -127,7 +124,6 @@ struct value_expr_t
extern std::auto_ptr<value_expr_t> amount_expr;
extern std::auto_ptr<value_expr_t> total_expr;
-
extern std::time_t terminus;
inline void compute_amount(value_t& result, const details_t& details) {