From e1d0dbf220a5301f6125a1548a380492ad488515 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Nov 2005 07:11:22 +0000 Subject: 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). --- valexpr.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'valexpr.h') 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 amount_expr; extern std::auto_ptr total_expr; - extern std::time_t terminus; inline void compute_amount(value_t& result, const details_t& details) { -- cgit v1.2.3