summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-11 19:14:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-11 19:14:23 -0400
commit1a030da55d5b16d18261f029cddb543e3ef32424 (patch)
treecfd273fcbaa059fa56311ae22599a205a2b1d4fd /src/report.cc
parent4eb46bedf0e6e31797826d05992e007f21ee830b (diff)
downloadfork-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.cc16
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"))