From 9ff282bd1173ddc34cad14a6e983b26b69278296 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 20 Feb 2005 01:06:31 +0000 Subject: (parse_entry): Parse the pending flag if a ! is used in place of *. --- textual.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index 4a6a839e..bffd56bd 100644 --- a/textual.cc +++ b/textual.cc @@ -220,9 +220,17 @@ entry_t * parse_entry(std::istream& in, char * line, account_t * master, TIMER_START(entry_details); - if (next && *next == '*') { - curr->state = entry_t::CLEARED; - next = skip_ws(++next); + if (next) { + switch (*next) { + case '*': + curr->state = entry_t::CLEARED; + next = skip_ws(++next); + break; + case '!': + curr->state = entry_t::PENDING; + next = skip_ws(++next); + break; + } } // Parse the optional code: (TEXT) -- cgit v1.2.3