diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-11-11 23:30:16 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-11-11 23:30:37 -0800 |
commit | e41e8e09e6bdb95dc24b910801f795123fb272d6 (patch) | |
tree | 034f0c6c6ef068764396c86276ff463ba25ba71a /029tools.cc | |
parent | aa3d29a5666afecd6bce1821ff72ccc5600b431f (diff) | |
download | mu-e41e8e09e6bdb95dc24b910801f795123fb272d6.tar.gz |
3669
Diffstat (limited to '029tools.cc')
-rw-r--r-- | 029tools.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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<double>& data) { +string inspect(const reagent& r, const vector<double>& 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; |