From 0a8b36de3f32f360ffdfc7c6d2e07b11345c7a1d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 16 Feb 2006 01:01:38 +0000 Subject: 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. --- main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index cf53be68..89f032b1 100644 --- a/main.cc +++ b/main.cc @@ -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."); -- cgit v1.2.3