diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-24 21:07:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-24 21:07:05 -0400 |
commit | a8a87ab9088d81b548282927c26deebd8a210284 (patch) | |
tree | b9e4dae1ab78071cb95d4538f64e63e4e34259e0 /src/session.cc | |
parent | 6d880c27286bf63452cf14b8a0bf49386269f0b2 (diff) | |
download | fork-ledger-a8a87ab9088d81b548282927c26deebd8a210284.tar.gz fork-ledger-a8a87ab9088d81b548282927c26deebd8a210284.tar.bz2 fork-ledger-a8a87ab9088d81b548282927c26deebd8a210284.zip |
Added "date" valexpr to session, for bal -V
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc index 6fa07664..9d1a23f4 100644 --- a/src/session.cc +++ b/src/session.cc @@ -235,6 +235,11 @@ expr_t::ptr_op_t session_t::lookup(const string& name) { const char * p = name.c_str(); switch (*p) { + case 'd': + if (is_eq(p, "date")) + return MAKE_FUNCTOR(session_t::fn_today); + break; + case 'n': if (is_eq(p, "now")) return MAKE_FUNCTOR(session_t::fn_now); |