diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-11 19:14:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-11 19:14:23 -0400 |
commit | 1a030da55d5b16d18261f029cddb543e3ef32424 (patch) | |
tree | cfd273fcbaa059fa56311ae22599a205a2b1d4fd /src/report.cc | |
parent | 4eb46bedf0e6e31797826d05992e007f21ee830b (diff) | |
download | fork-ledger-1a030da55d5b16d18261f029cddb543e3ef32424.tar.gz fork-ledger-1a030da55d5b16d18261f029cddb543e3ef32424.tar.bz2 fork-ledger-1a030da55d5b16d18261f029cddb543e3ef32424.zip |
Rewrote the "entry" command. It's ALIVE!
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/report.cc b/src/report.cc index 78d91fdf..e319c8aa 100644 --- a/src/report.cc +++ b/src/report.cc @@ -586,12 +586,6 @@ expr_t::ptr_op_t report_t::lookup(const string& name) if (is_eq(p, "args")) return WRAP_FUNCTOR(args_command); break; - case 'p': - if (is_eq(p, "parse")) - return WRAP_FUNCTOR(parse_command); - else if (is_eq(p, "period")) - return WRAP_FUNCTOR(period_command); - break; case 'e': if (is_eq(p, "eval")) return WRAP_FUNCTOR(eval_command); @@ -600,6 +594,16 @@ expr_t::ptr_op_t report_t::lookup(const string& name) if (is_eq(p, "format")) return WRAP_FUNCTOR(format_command); break; + case 'p': + if (is_eq(p, "parse")) + return WRAP_FUNCTOR(parse_command); + else if (is_eq(p, "period")) + return WRAP_FUNCTOR(period_command); + break; + case 't': + if (is_eq(p, "template")) + return WRAP_FUNCTOR(template_command); + break; } } else if (is_eq(p, "print_balance")) |