summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-20 03:25:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-20 03:25:28 -0400
commit5429792edc077d8c65d7bbf0f98c3d0e59837775 (patch)
tree3d068afe20d09862f064367cfdef58bc107a8558 /main.cc
parent18879bbe85cdef7a60d0692e17b9c835c81e77fc (diff)
downloadfork-ledger-5429792edc077d8c65d7bbf0f98c3d0e59837775.tar.gz
fork-ledger-5429792edc077d8c65d7bbf0f98c3d0e59837775.tar.bz2
fork-ledger-5429792edc077d8c65d7bbf0f98c3d0e59837775.zip
the "bal" command mostly works now in main.py; added a finalize_entry hook
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 145497d8..db1eacd4 100644
--- a/main.cc
+++ b/main.cc
@@ -1,6 +1,7 @@
#include "ledger.h"
#include "parser.h"
#include "textual.h"
+#include "autoxact.h"
#include "binary.h"
#include "qif.h"
#include "acconf.h"
@@ -216,6 +217,7 @@ int parse_and_report(int argc, char * argv[], char * envp[])
#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);
+ text_parser->add_finalize_hook(handle_auto_xacts);
register_parser(bin_parser.get());
#ifdef READ_GNUCASH