summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-19 23:10:37 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-19 23:10:37 -0400
commit88634973a29693402edd4eb8e943531354c51893 (patch)
tree550f6fca09e80d1a0877e06c3433b37c5bb2e6d5 /main.cc
parentd568319495a0695582797de0be4b85e1e06e73b2 (diff)
downloadfork-ledger-88634973a29693402edd4eb8e943531354c51893.tar.gz
fork-ledger-88634973a29693402edd4eb8e943531354c51893.tar.bz2
fork-ledger-88634973a29693402edd4eb8e943531354c51893.zip
Some basic fixes to get things almost running, although we still can't parse
my personal ledger file yet.
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 3c378861..bae22bcd 100644
--- a/main.cc
+++ b/main.cc
@@ -495,10 +495,18 @@ int main(int argc, char * argv[], char * envp[])
report_t report;
ledger::config = &config;
ledger::report = &report;
+
+ amount_t::initialize();
+ value_t::initialize();
+
#if 0
TRACE_PUSH(main, "Ledger starting");
#endif
int status = parse_and_report(config, journal, report, argc, argv, envp);
+
+ value_t::shutdown();
+ amount_t::shutdown();
+
#if 0
TRACE_POP(main, "Ledger done");
#endif