diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-22 02:23:45 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-22 02:23:45 -0400 |
commit | 4bc29e1351faeba56cbfc1146fa1af33eba15f9d (patch) | |
tree | 0b7102725c562816a1fc7367601e0026bf3b2bac /main.cc | |
parent | e41dbc204a5269d89b8909546d44927a58e29675 (diff) | |
download | fork-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.cc | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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); |