From bbcb49fed27ea7d2052724fbee79f42c9bc744bc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 17 Aug 2004 16:41:07 -0400 Subject: fixes --- main.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.cc') diff --git a/main.cc b/main.cc index 6eaf1d05..756fe8b4 100644 --- a/main.cc +++ b/main.cc @@ -97,12 +97,16 @@ int main(int argc, char * argv[], char * envp[]) process_environment(envp, "LEDGER_"); +#if 1 + // These are here until 3.x, for backwards compatability. + if (const char * p = std::getenv("LEDGER")) process_option("file", p); if (const char * p = std::getenv("PRICE_HIST")) process_option("price-db", p); if (const char * p = std::getenv("PRICE_EXP")) process_option("price-exp", p); +#endif TIMER_STOP(process_env); @@ -123,9 +127,11 @@ int main(int argc, char * argv[], char * envp[]) journal->sources.pop_front(); // remove cache_file strings_list exceptions; +#if 0 std::set_difference(journal->sources.begin(), journal->sources.end(), config->files.begin(), config->files.end(), exceptions.begin()); +#endif if (entry_count == 0 || exceptions.size() > 0) { journal.reset(new journal_t); -- cgit v1.2.3