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 /gnucash.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 'gnucash.cc')
-rw-r--r-- | gnucash.cc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -344,8 +344,8 @@ bool gnucash_parser_t::test(std::istream& in) const } unsigned int gnucash_parser_t::parse(std::istream& in, - config_t& config, - journal_t * journal, + session_t& session, + journal_t& journal, account_t * master, const path * original_file) { @@ -360,8 +360,8 @@ unsigned int gnucash_parser_t::parse(std::istream& in, count = 0; action = NO_ACTION; - curr_journal = journal; - master_account = master ? master : journal->master; + curr_journal = &journal; + master_account = master ? master : journal.master; curr_account = NULL; curr_entry = NULL; curr_comm = NULL; @@ -370,7 +370,7 @@ unsigned int gnucash_parser_t::parse(std::istream& in, instreamp = ∈ pathname = original_file ? *original_file : "<gnucash>"; - src_idx = journal->sources.size() - 1; + src_idx = journal.sources.size() - 1; // GnuCash uses the USD commodity without defining it, which really // means $. |