diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-04 19:55:27 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-04 19:55:27 -0400 |
commit | 2d941730b1c60342be5b108d2d654723b3b7c2cb (patch) | |
tree | 6a3f4b7305857e85d2684670492007bafc3668d0 /src/precmd.cc | |
parent | 73cf3b01fbd50c3a8a4fd96ff69643c28394d8fe (diff) | |
download | fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.gz fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.bz2 fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.zip |
Largely removed all of Ledger's use of global variables, for the REPL's sake.
Diffstat (limited to 'src/precmd.cc')
-rw-r--r-- | src/precmd.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/precmd.cc b/src/precmd.cc index 5cefe435..fd6a2457 100644 --- a/src/precmd.cc +++ b/src/precmd.cc @@ -63,7 +63,7 @@ value_t parse_command(call_scope_t& args) out << std::endl << "--- Calculated value ---" << std::endl; value_t result(expr.calc(args)); - result.print(out); + result.dump(out); out << std::endl; return 0L; @@ -82,7 +82,8 @@ value_t eval_command(call_scope_t& args) std::ostream& out(report.output_stream); expr_t expr(*arg); - out << expr.calc(args).strip_annotations() << std::endl; + out << expr.calc(args).strip_annotations(report.what_to_keep) + << std::endl; return 0L; } @@ -150,7 +151,7 @@ value_t args_command(call_scope_t& args) value_t::sequence_t::const_iterator end = args.value().end(); out << "--- Input arguments ---" << std::endl; - args.value().print(out); + args.value().dump(out); out << std::endl << std::endl; string predicate = args_to_predicate_expr(begin, end); |