(write_entry): If an entry is marked pending, output the `pending'
symbol in the Emacs output.
This commit is contained in:
parent
e846d22fcf
commit
57b470be97
1 changed files with 11 additions and 1 deletions
12
emacs.cc
12
emacs.cc
|
|
@ -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) ";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue