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
commit4aea9709bb25a3be567ad8c25cdd4458e813a10f (patch)
treeab9f540eb655848acc8f324afe171775affe2f39 /xml.cc
parent17e872689ead6d2250af3997c3944b081b4ad9ef (diff)
downloadledger-4aea9709bb25a3be567ad8c25cdd4458e813a10f.tar.gz
ledger-4aea9709bb25a3be567ad8c25cdd4458e813a10f.tar.bz2
ledger-4aea9709bb25a3be567ad8c25cdd4458e813a10f.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];