(parse_and_report): Set ledger::terminus in main.cc, instead of
relying on static initialization of valexpr.cc.
This commit is contained in:
parent
7f34e080fd
commit
d021582d28
2 changed files with 5 additions and 1 deletions
4
main.cc
4
main.cc
|
|
@ -41,6 +41,10 @@ int parse_and_report(int argc, char * argv[], char * envp[])
|
|||
|
||||
std::auto_ptr<journal_t> journal(new journal_t);
|
||||
|
||||
// Configure the terminus for value expressions
|
||||
|
||||
ledger::terminus = now;
|
||||
|
||||
// Parse command-line arguments, and those set in the environment
|
||||
|
||||
std::list<std::string> args;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace ledger {
|
|||
std::auto_ptr<value_expr_t> amount_expr;
|
||||
std::auto_ptr<value_expr_t> total_expr;
|
||||
|
||||
std::time_t terminus = now;
|
||||
std::time_t terminus;
|
||||
|
||||
details_t::details_t(const transaction_t& _xact)
|
||||
: entry(_xact.entry), xact(&_xact), account(xact_account(_xact))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue