diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-15 17:08:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-15 17:08:56 -0400 |
commit | 7189b181ef3e0da74d992da87771fa26399391bc (patch) | |
tree | 3c6b677a54161fb63cb169c93d9eade0b316b4da /textual.cc | |
parent | 78c44b5e795a98baacfbc56943b784370956cbca (diff) | |
download | fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.tar.gz fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.tar.bz2 fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.zip |
further restructuring
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -223,10 +223,12 @@ bool finalize_entry(entry_t * entry) return ! balance; } -TIMER_DEF(entry_finish, "finalizing entry"); -TIMER_DEF(entry_xacts, "parsing transactions"); -TIMER_DEF(entry_details, "parsing entry details"); -TIMER_DEF(entry_date, "parsing entry date"); +namespace { + TIMER_DEF(entry_finish, "finalizing entry"); + TIMER_DEF(entry_xacts, "parsing transactions"); + TIMER_DEF(entry_details, "parsing entry details"); + TIMER_DEF(entry_date, "parsing entry date"); +} entry_t * parse_entry(std::istream& in, account_t * master) { @@ -543,7 +545,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); + count += parse_journal_file(skip_ws(line), journal, + account_stack.front()); } break; |