summaryrefslogtreecommitdiff
path: root/xml.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-16 01:01:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:23 -0400
commit0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d (patch)
treeab9f540eb655848acc8f324afe171775affe2f39 /xml.cc
parent06b7e9d9043a501d24f4b2a5b7f2242ff3cebe24 (diff)
downloadfork-ledger-0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d.tar.gz
fork-ledger-0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d.tar.bz2
fork-ledger-0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d.zip
Made several changes to the parsing infrastructure to allow passing
the "config_t" object around. This is needed for parsing option settings in the initialization file.
Diffstat (limited to 'xml.cc')
-rw-r--r--xml.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/xml.cc b/xml.cc
index 380416ed..6e3007b8 100644
--- a/xml.cc
+++ b/xml.cc
@@ -175,10 +175,11 @@ bool xml_parser_t::test(std::istream& in) const
return true;
}
-unsigned int xml_parser_t::parse(std::istream& in,
- journal_t * journal,
- account_t * master,
- const std::string * original_file)
+unsigned int xml_parser_t::parse(std::istream& in,
+ config_t& config,
+ journal_t * journal,
+ account_t * master,
+ const std::string * original_file)
{
char buf[BUFSIZ];