From a802f0cedc7b5580d746f46ae62fcf8074ae3c49 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 04:41:24 -0800 Subject: 3749 --- html/101run_sandboxed.cc.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'html/101run_sandboxed.cc.html') diff --git a/html/101run_sandboxed.cc.html b/html/101run_sandboxed.cc.html index 384cb677..3c4abbf9 100644 --- a/html/101run_sandboxed.cc.html +++ b/html/101run_sandboxed.cc.html @@ -103,11 +103,11 @@ if ('onhashchange' in window) { 41 :(before "End Primitive Recipe Checks") 42 case RUN_SANDBOXED: { 43 if (SIZE(inst.ingredients) != 1) { - 44 raise << maybe(get(Recipe, r).name) << "'run-sandboxed' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end(); + 44 raise << maybe(get(Recipe, r).name) << "'run-sandboxed' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end(); 45 break; 46 } 47 if (!is_mu_text(inst.ingredients.at(0))) { - 48 raise << maybe(get(Recipe, r).name) << "first ingredient of 'run-sandboxed' should be a string, but got '" << to_string(inst.ingredients.at(0)) << "'\n" << end(); + 48 raise << maybe(get(Recipe, r).name) << "first ingredient of 'run-sandboxed' should be a string, but got '" << to_string(inst.ingredients.at(0)) << "'\n" << end(); 49 break; 50 } 51 break; @@ -157,7 +157,7 @@ if ('onhashchange' in window) { 95 for (int i = 1; i < Reserved_for_tests; ++i) 96 Memory.erase(i); 97 } - 98 string command = trim(strip_comments(read_mu_text(address))); + 98 string command = trim(strip_comments(read_mu_text(address))); 99 Name[get(Recipe_ordinal, "interactive")].clear(); 100 run_code_begin(/*should_stash_snapshots*/true); 101 if (command.empty()) return false; @@ -180,7 +180,7 @@ if ('onhashchange' in window) { 118 // and wait for it 119 if (Save_trace_stream) { 120 ++Save_trace_stream->callstack_depth; -121 trace(9999, "trace") << "run-sandboxed: incrementing callstack depth to " << Save_trace_stream->callstack_depth << end(); +121 trace(9999, "trace") << "run-sandboxed: incrementing callstack depth to " << Save_trace_stream->callstack_depth << end(); 122 assert(Save_trace_stream->callstack_depth < 9000); // 9998-101 plus cushion 123 } 124 Current_routine->calls.push_front(call(get(Recipe_ordinal, "sandbox"))); @@ -491,10 +491,10 @@ if ('onhashchange' in window) { 429 int trace_error_contents() { 430 if (!Trace_stream) return 0; 431 ostringstream out; -432 for (vector<trace_line>::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { +432 for (vector<trace_line>::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { 433 if (p->label != "error") continue; 434 out << p->contents; -435 if (*--p->contents.end() != '\n') out << '\n'; +435 if (*--p->contents.end() != '\n') out << '\n'; 436 } 437 string result = out.str(); 438 truncate(result); @@ -505,10 +505,10 @@ if ('onhashchange' in window) { 443 int trace_app_contents() { 444 if (!Trace_stream) return 0; 445 ostringstream out; -446 for (vector<trace_line>::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { +446 for (vector<trace_line>::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { 447 if (p->depth != App_depth) continue; 448 out << p->contents; -449 if (*--p->contents.end() != '\n') out << '\n'; +449 if (*--p->contents.end() != '\n') out << '\n'; 450 } 451 string result = out.str(); 452 if (result.empty()) return 0; @@ -535,11 +535,11 @@ if ('onhashchange' in window) { 473 :(before "End Primitive Recipe Checks") 474 case RELOAD: { 475 if (SIZE(inst.ingredients) != 1) { -476 raise << maybe(get(Recipe, r).name) << "'reload' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end(); +476 raise << maybe(get(Recipe, r).name) << "'reload' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end(); 477 break; 478 } 479 if (!is_mu_text(inst.ingredients.at(0))) { -480 raise << maybe(get(Recipe, r).name) << "first ingredient of 'reload' should be a string, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +480 raise << maybe(get(Recipe, r).name) << "first ingredient of 'reload' should be a string, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 481 break; 482 } 483 break; @@ -554,7 +554,7 @@ if ('onhashchange' in window) { 492 Sandbox_mode = true; 493 vector<recipe_ordinal> recipes_reloaded = load(code); 494 transform_all(); -495 Trace_stream->newline(); // flush trace +495 Trace_stream->newline(); // flush trace 496 Sandbox_mode = false; 497 Current_routine = save_current_routine; 498 products.resize(1); -- cgit 1.4.1-2-gfad0