From 2d941730b1c60342be5b108d2d654723b3b7c2cb Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Feb 2009 19:55:27 -0400 Subject: Largely removed all of Ledger's use of global variables, for the REPL's sake. --- src/precmd.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/precmd.cc') 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); -- cgit v1.2.3