diff options
Diffstat (limited to 'src/emacs.h')
-rw-r--r-- | src/emacs.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/emacs.h b/src/emacs.h index 868a899b..dec7d183 100644 --- a/src/emacs.h +++ b/src/emacs.h @@ -55,30 +55,30 @@ namespace ledger { * * Long. */ -class format_emacs_xacts : public item_handler<xact_t> +class format_emacs_posts : public item_handler<post_t> { - format_emacs_xacts(); + format_emacs_posts(); protected: std::ostream& out; - entry_t * last_entry; + xact_t * last_xact; public: - format_emacs_xacts(std::ostream& _out) - : out(_out), last_entry(NULL) { - TRACE_CTOR(format_emacs_xacts, "std::ostream&"); + format_emacs_posts(std::ostream& _out) + : out(_out), last_xact(NULL) { + TRACE_CTOR(format_emacs_posts, "std::ostream&"); } - ~format_emacs_xacts() { - TRACE_DTOR(format_emacs_xacts); + ~format_emacs_posts() { + TRACE_DTOR(format_emacs_posts); } - virtual void write_entry(entry_t& entry); + virtual void write_xact(xact_t& xact); virtual void flush() { - if (last_entry) + if (last_xact) out << "))\n"; out.flush(); } - virtual void operator()(xact_t& xact); + virtual void operator()(post_t& post); }; } // namespace ledger |