From e41e8e09e6bdb95dc24b910801f795123fb272d6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 11 Nov 2016 23:30:16 -0800 Subject: 3669 --- 029tools.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '029tools.cc') diff --git a/029tools.cc b/029tools.cc index ce0794c4..935dd4ed 100644 --- a/029tools.cc +++ b/029tools.cc @@ -33,7 +33,7 @@ case TRACE: { ostringstream out; for (int i = 2; i < SIZE(current_instruction().ingredients); ++i) { if (i > 2) out << ' '; - out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); + out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); } trace(depth, label) << out.str() << end(); break; @@ -54,7 +54,7 @@ case STASH: { ostringstream out; for (int i = 0; i < SIZE(current_instruction().ingredients); ++i) { if (i) out << ' '; - out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); + out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); } trace(2, "app") << out.str() << end(); break; @@ -80,10 +80,10 @@ def main [ +app: foo: 34 :(code) -string print_mu(const reagent& r, const vector& data) { +string inspect(const reagent& r, const vector& data) { if (is_literal(r)) return r.name; - // End print Special-cases(r, data) + // End inspect Special-cases(r, data) ostringstream out; for (long long i = 0; i < SIZE(data); ++i) { if (i) out << ' '; @@ -331,7 +331,7 @@ case _LOG: { case _LOG: { ostringstream out; for (int i = 0; i < SIZE(current_instruction().ingredients); ++i) { - out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); + out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); } LOG << out.str() << '\n'; break; -- cgit 1.4.1-2-gfad0