summaryrefslogtreecommitdiff
path: root/xml.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 /xml.cc
parente41dbc204a5269d89b8909546d44927a58e29675 (diff)
downloadledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.gz
ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.bz2
ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.zip
A great deal of reorganization to restore the old parsing code (since the
newer XML stuff was pulled).
Diffstat (limited to 'xml.cc')
-rw-r--r--xml.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/xml.cc b/xml.cc
index f416f755..6dd69cd0 100644
--- a/xml.cc
+++ b/xml.cc
@@ -12,13 +12,13 @@ static unsigned int count;
static journal_t * curr_journal;
static entry_t * curr_entry;
static commodity_t * curr_comm;
-static string comm_flags;
+static string comm_flags;
static transaction_t::state_t curr_state;
-static string data;
-static bool ignore;
-static string have_error;
+static string data;
+static bool ignore;
+static string have_error;
static void startElement(void *userData, const char *name, const char **attrs)
{
@@ -180,15 +180,15 @@ bool xml_parser_t::test(std::istream& in) const
}
unsigned int xml_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)
{
char buf[BUFSIZ];
count = 0;
- curr_journal = journal;
+ curr_journal = &journal;
curr_entry = NULL;
curr_comm = NULL;
ignore = false;