diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-19 22:03:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-19 22:03:23 -0400 |
commit | a9b207205f5d117db4f6a5d503ba7289882dec2d (patch) | |
tree | 81935d2cfd538cf782638ffb7cbd36dc9033baed /textual.cc | |
parent | 9d4f8392632481ce5e174a4ebe52d4cb339b95dc (diff) | |
download | fork-ledger-a9b207205f5d117db4f6a5d503ba7289882dec2d.tar.gz fork-ledger-a9b207205f5d117db4f6a5d503ba7289882dec2d.tar.bz2 fork-ledger-a9b207205f5d117db4f6a5d503ba7289882dec2d.zip |
several fixes
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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<unsigned int> save_linenum(linenum); push_var<std::string> 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; |