summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-15 17:08:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-15 17:08:56 -0400
commit7189b181ef3e0da74d992da87771fa26399391bc (patch)
tree3c6b677a54161fb63cb169c93d9eade0b316b4da /textual.cc
parent78c44b5e795a98baacfbc56943b784370956cbca (diff)
downloadfork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.tar.gz
fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.tar.bz2
fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.zip
further restructuring
Diffstat (limited to 'textual.cc')
-rw-r--r--textual.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/textual.cc b/textual.cc
index 4fd4ade3..7cb5181c 100644
--- a/textual.cc
+++ b/textual.cc
@@ -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;