diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-22 02:23:45 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-22 02:23:45 -0400 |
commit | 4bc29e1351faeba56cbfc1146fa1af33eba15f9d (patch) | |
tree | 0b7102725c562816a1fc7367601e0026bf3b2bac /startup.cc | |
parent | e41dbc204a5269d89b8909546d44927a58e29675 (diff) | |
download | fork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.gz fork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.bz2 fork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.zip |
A great deal of reorganization to restore the old parsing code (since the
newer XML stuff was pulled).
Diffstat (limited to 'startup.cc')
-rw-r--r-- | startup.cc | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/startup.cc b/startup.cc deleted file mode 100644 index 6ed41bd6..00000000 --- a/startup.cc +++ /dev/null @@ -1,63 +0,0 @@ -#include "ledger.h" -#include "xml.h" -#include "gnucash.h" -#include "qif.h" -#include "ofx.h" - -using namespace ledger; - -namespace ledger { - parser_t * binary_parser_ptr = NULL; - parser_t * xml_parser_ptr = NULL; - parser_t * gnucash_parser_ptr = NULL; - parser_t * ofx_parser_ptr = NULL; - parser_t * qif_parser_ptr = NULL; - parser_t * textual_parser_ptr = NULL; -} - -namespace { - binary_parser_t binary_parser; -#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) - xml_parser_t xml_parser; - gnucash_parser_t gnucash_parser; -#endif -#ifdef HAVE_LIBOFX - ofx_parser_t ofx_parser; -#endif - qif_parser_t qif_parser; - textual_parser_t textual_parser; - - static class startup { - public: - startup(); - ~startup(); - } _startup; - - startup::startup() - { - std::ios::sync_with_stdio(false); - - initialize_parser_support(); - - register_parser(&binary_parser); binary_parser_ptr = &binary_parser; -#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) - register_parser(&xml_parser); xml_parser_ptr = &xml_parser; - register_parser(&gnucash_parser); gnucash_parser_ptr = &gnucash_parser; -#endif -#ifdef HAVE_LIBOFX - register_parser(&ofx_parser); ofx_parser_ptr = &ofx_parser; -#endif - register_parser(&qif_parser); qif_parser_ptr = &qif_parser; - register_parser(&textual_parser); textual_parser_ptr = &textual_parser; - } - - startup::~startup() - { - // jww (2008-04-22): What about this? -#if 0 - if (! ledger::do_cleanup) - return; -#endif - shutdown_parser_support(); - } -} |