From dcc060c7d4ef56b978beb34ddce8d8ffcec94fa6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 25 Feb 2016 17:17:20 -0800 Subject: 2706 - update html --- html/043space.cc.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/043space.cc.html') diff --git a/html/043space.cc.html b/html/043space.cc.html index 36e41bc1..777562dd 100644 --- a/html/043space.cc.html +++ b/html/043space.cc.html @@ -92,7 +92,7 @@ void absolutize(reagent& x(is_raw(x) || is_dummy(x)) return; if (x.name == "default-space") return; if (!x.initialized) { - raise_error << current_instruction().to_string() << ": reagent not initialized: " << x.original_string << '\n' << end(); + raise_error << to_string(current_instruction()) << ": reagent not initialized: " << x.original_string << '\n' << end(); } x.set_value(address(x.value, space_base(x))); x.properties.push_back(pair<string, string_tree*>("raw", NULL)); @@ -271,7 +271,7 @@ void try_reclaim_locals() (instruction& curr) { if (!curr.ingredients.empty()) - raise_error << curr.to_string() << " can't take any ingredients\n" << end(); + raise_error << to_string(curr) << " can't take any ingredients\n" << end(); curr.name = "new"; curr.ingredients.push_back(reagent("location:type")); curr.ingredients.push_back(reagent("number-of-locals:literal")); @@ -283,12 +283,12 @@ void rewrite_default_space_instruction(instructio //:: all recipes must set default-space one way or another :(before "End Globals") -bool Warn_on_missing_default_space = false; +bool Hide_missing_default_space_errors = true; :(before "End Checks") Transform.push_back(check_default_space); // idempotent :(code) void check_default_space(const recipe_ordinal r) { - if (!Warn_on_missing_default_space) return; // skip previous core tests; this is only for mu code + if (Hide_missing_default_space_errors) return; // skip previous core tests; this is only for mu code const recipe& caller = get(Recipe, r); // skip scenarios (later layer) // user code should never create recipes with underscores in their names @@ -300,24 +300,24 @@ void check_default_space(const recipe_ordinal r(caller.steps.empty()) return; if (caller.steps.at(0).products.empty() || caller.steps.at(0).products.at(0).name != "default-space") { - raise << maybe(caller.name) << " does not seem to start with default-space or local-scope\n" << end(); + raise_error << maybe(caller.name) << " does not seem to start with default-space or local-scope\n" << end(); //? cerr << maybe(caller.name) << " does not seem to start with default-space or local-scope\n" << '\n'; } } :(after "Load .mu Core") -Warn_on_missing_default_space = true; +Hide_missing_default_space_errors = false; :(after "Test Runs") -Warn_on_missing_default_space = false; +Hide_missing_default_space_errors = true; :(after "Running Main") -Warn_on_missing_default_space = true; +Hide_missing_default_space_errors = false; :(code) bool contains_non_special_name(const recipe_ordinal r) { for (map<string, long long int>::iterator p = Name[r].begin(); p != Name[r].end(); ++p) { if (p->first.empty()) continue; - if (p->first.find("stash_") == 0) continue; // generated by rewrite_stashes_to_text + if (p->first.find("stash_") == 0) continue; // generated by rewrite_stashes_to_text (cross-layer) if (!is_special_name(p->first)) { -//? cerr << " " << Recipe[r].name << ": " << p->first << '\n'; +//? cerr << " " << get(Recipe, r).name << ": " << p->first << '\n'; return true; } } -- cgit 1.4.1-2-gfad0