From 4ed59bcf8cf9bd6525535f16efde058267649058 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 10 Feb 2005 04:15:47 +0000 Subject: Fixed a Gnucash problem. --- main.cc | 8 ++------ py_eval.cc | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/main.cc b/main.cc index 9cb0effe..84c4b4ed 100644 --- a/main.cc +++ b/main.cc @@ -258,11 +258,9 @@ int parse_and_report(int argc, char * argv[], char * envp[]) // Parse initialization files, ledger data, price database, etc. std::auto_ptr bin_parser(new binary_parser_t); -#ifdef READ_GNUCASH - std::auto_ptr gnucash_parser(new gnucash_parser_t); -#endif #ifdef HAVE_XMLPARSE std::auto_ptr xml_parser(new xml_parser_t); + std::auto_ptr gnucash_parser(new gnucash_parser_t); #endif #ifdef HAVE_LIBOFX std::auto_ptr ofx_parser(new ofx_parser_t); @@ -271,11 +269,9 @@ int parse_and_report(int argc, char * argv[], char * envp[]) std::auto_ptr text_parser(new textual_parser_t); register_parser(bin_parser.get()); -#ifdef READ_GNUCASH - register_parser(gnucash_parser.get()); -#endif #ifdef HAVE_XMLPARSE register_parser(xml_parser.get()); + register_parser(gnucash_parser.get()); #endif #ifdef HAVE_LIBOFX register_parser(ofx_parser.get()); diff --git a/py_eval.cc b/py_eval.cc index 13afcb1e..e4de32b7 100644 --- a/py_eval.cc +++ b/py_eval.cc @@ -19,11 +19,9 @@ void export_parser(); void export_textual(); void export_binary(); void export_qif(); -#ifdef READ_GNUCASH -void export_gnucash(); -#endif #ifdef HAVE_XMLPARSE void export_xml(); +void export_gnucash(); #endif #ifdef HAVE_LIBOFX void export_ofx(); @@ -46,11 +44,9 @@ void initialize_ledger_for_python() export_textual(); export_binary(); export_qif(); -#ifdef READ_GNUCASH - export_gnucash(); -#endif #ifdef HAVE_XMLPARSE export_xml(); + export_gnucash(); #endif #ifdef HAVE_LIBOFX export_ofx(); -- cgit v1.2.3