summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-19 22:05:22 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-19 22:05:22 -0400
commitf19aeb6d448c892d24d5a97c8d66748fe5b8895f (patch)
treec216ca9ba85da56d02131cdb06dd36ad772e3760 /main.cc
parenta9b207205f5d117db4f6a5d503ba7289882dec2d (diff)
downloadfork-ledger-f19aeb6d448c892d24d5a97c8d66748fe5b8895f.tar.gz
fork-ledger-f19aeb6d448c892d24d5a97c8d66748fe5b8895f.tar.bz2
fork-ledger-f19aeb6d448c892d24d5a97c8d66748fe5b8895f.zip
fixes
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.cc b/main.cc
index dfc64bd4..67028156 100644
--- a/main.cc
+++ b/main.cc
@@ -195,13 +195,13 @@ int main(int argc, char * argv[], char * envp[])
try {
if (! config->init_file.empty())
- if (parser_t::parse(config->init_file, journal.get()))
+ if (parser_t::parse_file(config->init_file, journal.get()))
throw error("Entries not allowed in initialization file");
if (use_cache && ! config->cache_file.empty() &&
! config->data_file.empty()) {
- entry_count += parser_t::parse(config->cache_file, journal.get(),
- NULL, &config->data_file);
+ entry_count += parser_t::parse_file(config->cache_file, journal.get(),
+ NULL, &config->data_file);
journal->sources.pop_front(); // remove cache_file
if (entry_count == 0) {
@@ -221,12 +221,12 @@ int main(int argc, char * argv[], char * envp[])
use_cache = false;
entry_count += text_parser->parse(std::cin, journal.get(), account);
} else {
- entry_count += parser_t::parse(config->data_file, journal.get(),
- account);
+ entry_count += parser_t::parse_file(config->data_file, journal.get(),
+ account);
}
if (! config->price_db.empty())
- if (parser_t::parse(config->price_db, journal.get()))
+ if (parser_t::parse_file(config->price_db, journal.get()))
throw error("Entries not allowed in price history file");
}