summaryrefslogtreecommitdiff
path: root/gnucash.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 /gnucash.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 'gnucash.cc')
-rw-r--r--gnucash.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnucash.cc b/gnucash.cc
index abec0ed8..a5234a68 100644
--- a/gnucash.cc
+++ b/gnucash.cc
@@ -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 = &in;
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 $.