(write_entry): If an entry is marked pending, output the `pending'

symbol in the Emacs output.
This commit is contained in:
John Wiegley 2005-02-20 01:07:19 +00:00
parent e846d22fcf
commit 57b470be97

View file

@ -6,7 +6,17 @@ void format_emacs_transactions::write_entry(entry_t& entry)
{
out << (((unsigned long)entry.beg_pos) + 1) << " ";
out << (entry.state == entry_t::CLEARED ? "t" : "nil") << " ";
switch (entry.state) {
case entry_t::CLEARED:
out << "t ";
break;
case entry_t::PENDING:
out << "pending ";
break;
case entry_t::UNCLEARED:
out << "nil ";
break;
}
out << "(" << (entry.date / 65536) << " "
<< (entry.date % 65536) << " 0) ";