diff options
author | John Wiegley <johnw@newartisans.com> | 2006-02-16 01:01:38 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:23 -0400 |
commit | 0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d (patch) | |
tree | ab9f540eb655848acc8f324afe171775affe2f39 /main.cc | |
parent | 06b7e9d9043a501d24f4b2a5b7f2242ff3cebe24 (diff) | |
download | fork-ledger-0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d.tar.gz fork-ledger-0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d.tar.bz2 fork-ledger-0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d.zip |
Made several changes to the parsing infrastructure to allow passing
the "config_t" object around. This is needed for parsing option
settings in the initialization file.
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -68,8 +68,10 @@ int parse_and_report(int argc, char * argv[], char * envp[]) config.process_option("file", p); if (const char * p = std::getenv("LEDGER_INIT")) config.process_option("init-file", p); +#if 0 if (const char * p = std::getenv("PRICE_HIST")) config.process_option("price-db", p); +#endif if (const char * p = std::getenv("PRICE_EXP")) config.process_option("price-exp", p); #endif @@ -128,7 +130,7 @@ int parse_and_report(int argc, char * argv[], char * envp[]) TIMER_START(parse); - if (parse_ledger_data(journal.get(), config) == 0) + if (parse_ledger_data(config, journal.get()) == 0) throw error("Please specify ledger file using -f" " or LEDGER_FILE environment variable."); |