diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-24 02:11:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-24 02:11:32 -0400 |
commit | 1fd37a432d060a08254ecb1a9129050563075140 (patch) | |
tree | f80ee5bf2b780f315348c2767150b9643e9d9488 /main.cc | |
parent | 73e2abd1b2e2bacbd353999a7b3edd95a04112c4 (diff) | |
download | fork-ledger-1fd37a432d060a08254ecb1a9129050563075140.tar.gz fork-ledger-1fd37a432d060a08254ecb1a9129050563075140.tar.bz2 fork-ledger-1fd37a432d060a08254ecb1a9129050563075140.zip |
cleanup; fully switched to autoconf -- use scripts/acprep
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include "textual.h" #include "binary.h" #include "qif.h" +#include "acconf.h" #ifdef READ_GNUCASH #include "gnucash.h" #endif @@ -140,6 +141,10 @@ regexps_to_predicate(std::list<std::string>::const_iterator begin, int main(int argc, char * argv[], char * envp[]) { +#ifdef DO_CLEANUP + initialize(); +#endif + std::auto_ptr<journal_t> journal(new journal_t); // Initialize the global configuration object for this run @@ -189,6 +194,9 @@ int main(int argc, char * argv[], char * envp[]) // Setup the parsers std::auto_ptr<binary_parser_t> bin_parser(new binary_parser_t); +#ifdef READ_GNUCASH + std::auto_ptr<gnucash_parser_t> gnucash_parser(new gnucash_parser_t); +#endif std::auto_ptr<qif_parser_t> qif_parser(new qif_parser_t); std::auto_ptr<textual_parser_t> text_parser(new textual_parser_t); @@ -626,6 +634,10 @@ int main(int argc, char * argv[], char * envp[]) TIMER_STOP(write_cache); +#ifdef DO_CLEANUP + shutdown(); +#endif + return 0; } |