From 24e64c202ea71ad73a860f16c6ba4b9288768fef Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 17 Sep 2008 21:08:54 -0400 Subject: Added the 'note' value expression identifier. --- src/xact.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xact.cc b/src/xact.cc index 2357de8e..556a0776 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -126,7 +126,7 @@ namespace { } value_t get_note(xact_t& xact) { - return string_value(xact.note ? *xact.note : ":NOTELESS:"); + return string_value(xact.note ? *xact.note : empty_string); } value_t get_account(call_scope_t& scope) @@ -212,6 +212,11 @@ expr_t::ptr_op_t xact_t::lookup(const string& name) } break; + case 'n': + if (name == "note") + return WRAP_FUNCTOR(get_wrapper<&get_note>); + break; + case 'p': if (name == "pending") return WRAP_FUNCTOR(get_wrapper<&get_pending>); -- cgit v1.2.3