summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 16:41:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 16:41:07 -0400
commitbbcb49fed27ea7d2052724fbee79f42c9bc744bc (patch)
tree094e1b10bcac1ba2d2c5ac7103b9b9ffe150ff79 /main.cc
parent019a42f199494c86b0aeea59caf9421d96a2c009 (diff)
downloadfork-ledger-bbcb49fed27ea7d2052724fbee79f42c9bc744bc.tar.gz
fork-ledger-bbcb49fed27ea7d2052724fbee79f42c9bc744bc.tar.bz2
fork-ledger-bbcb49fed27ea7d2052724fbee79f42c9bc744bc.zip
fixes
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc6
1 files changed, 6 insertions, 0 deletions
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);