From 961b30926b3b9f2b3e9c1a99df3f25fea6b13118 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 26 Jul 2008 04:08:55 -0400 Subject: --verify works again, but the memory totals at the end still need work. --- parser.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'parser.h') diff --git a/parser.h b/parser.h index 2f1a5469..3815780c 100644 --- a/parser.h +++ b/parser.h @@ -9,10 +9,15 @@ class account_t; class journal_t; class session_t; -class parser_t +class parser_t : public noncopyable { - public: - virtual ~parser_t() {} +public: + parser_t() { + TRACE_CTOR(parser_t, ""); + } + virtual ~parser_t() { + TRACE_DTOR(parser_t); + } virtual bool test(std::istream& in) const = 0; @@ -41,8 +46,9 @@ unsigned int parse_ledger_data(session_t& session, parser_t * xml_parser = NULL, parser_t * stdin_parser = NULL); -class parse_error : public error { - public: +class parse_error : public error +{ +public: parse_error(const string& reason, error_context * ctxt = NULL) throw() : error(reason, ctxt) {} virtual ~parse_error() throw() {} -- cgit v1.2.3