From a9b207205f5d117db4f6a5d503ba7289882dec2d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Aug 2004 22:03:23 -0400 Subject: several fixes --- textual.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index fde735c2..64d03286 100644 --- a/textual.cc +++ b/textual.cc @@ -1,3 +1,5 @@ +#include "ledger.h" +#include "textual.h" #include "datetime.h" #include "autoxact.h" #include "valexpr.h" @@ -292,8 +294,10 @@ struct push_var { ~push_var() { var = prev; } }; -unsigned int parse_textual_journal(std::istream& in, journal_t * journal, - account_t * master) +unsigned int textual_parser_t::parse(std::istream& in, + journal_t * journal, + account_t * master, + const std::string * original_file) { static char line[MAX_LINE + 1]; char c; @@ -529,8 +533,8 @@ unsigned int parse_textual_journal(std::istream& in, journal_t * journal, push_var save_linenum(linenum); push_var save_path(path); - count += parse_journal_file(skip_ws(line), journal, - account_stack.front()); + count += parser_t::parse(skip_ws(line), journal, + account_stack.front()); } break; -- cgit v1.2.3