summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-22 02:23:45 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-22 02:23:45 -0400
commit4bc29e1351faeba56cbfc1146fa1af33eba15f9d (patch)
tree0b7102725c562816a1fc7367601e0026bf3b2bac /main.cc
parente41dbc204a5269d89b8909546d44927a58e29675 (diff)
downloadfork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.gz
fork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.bz2
fork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.zip
A great deal of reorganization to restore the old parsing code (since the
newer XML stuff was pulled).
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/main.cc b/main.cc
index fc6d06b5..0bea426c 100644
--- a/main.cc
+++ b/main.cc
@@ -199,19 +199,15 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[],
// Parse the initialization file, which can only be textual; then
// parse the journal data.
-#if 0
session.read_init();
-#endif
INFO_START(journal, "Read journal file");
- journal_t * journal = session.create_journal();
+ journal_t& journal(*session.create_journal());
-#if 0
- if (! session.read_data(builder, journal, report.account))
+ if (! session.read_data(journal, report.account))
throw_(parse_error, "Failed to locate any journal entries; "
"did you specify a valid file with -f?");
-#endif
INFO_FINISH(journal);