From 1c2d788b454670bf8fa1cb65c6251a8ff6ddcaf7 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 19 Jun 2017 11:29:20 -0700 Subject: 3927 --- html/071recipe.cc.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/071recipe.cc.html') diff --git a/html/071recipe.cc.html b/html/071recipe.cc.html index 41f0527d..cc5eec00 100644 --- a/html/071recipe.cc.html +++ b/html/071recipe.cc.html @@ -112,7 +112,7 @@ if ('onhashchange' in window) { 48 if (x.type) return false; 49 if (!contains_key(Recipe_ordinal, x.name)) return false; 50 if (contains_reagent_with_type(caller, x.name)) { - 51 ¦ raise << maybe(caller.name) << "you can't use '" << x.name << "' as a recipe literal when it's also a variable\n" << end(); + 51 ¦ raise << maybe(caller.name) << "you can't use '" << x.name << "' as a recipe literal when it's also a variable\n" << end(); 52 ¦ return false; 53 } 54 return true; @@ -157,11 +157,11 @@ if ('onhashchange' in window) { 93 :(before "End Primitive Recipe Checks") 94 case CALL: { 95 if (inst.ingredients.empty()) { - 96 ¦ raise << maybe(get(Recipe, r).name) << "'call' requires at least one ingredient (the recipe to call)\n" << end(); + 96 ¦ raise << maybe(get(Recipe, r).name) << "'call' requires at least one ingredient (the recipe to call)\n" << end(); 97 ¦ break; 98 } 99 if (!is_mu_recipe(inst.ingredients.at(0))) { -100 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'call' should be a recipe, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +100 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'call' should be a recipe, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 101 ¦ break; 102 } 103 break; @@ -171,11 +171,11 @@ if ('onhashchange' in window) { 107 // Begin Call 108 if (Trace_stream) { 109 ¦ ++Trace_stream->callstack_depth; -110 ¦ trace("trace") << "indirect 'call': incrementing callstack depth to " << Trace_stream->callstack_depth << end(); +110 ¦ trace("trace") << "indirect 'call': incrementing callstack depth to " << Trace_stream->callstack_depth << end(); 111 ¦ assert(Trace_stream->callstack_depth < 9000); // 9998-101 plus cushion 112 } 113 if (!ingredients.at(0).at(0)) { -114 ¦ raise << maybe(current_recipe_name()) << "tried to call empty recipe in '" << to_string(current_instruction()) << "'" << end(); +114 ¦ raise << maybe(current_recipe_name()) << "tried to call empty recipe in '" << to_string(current_instruction()) << "'" << end(); 115 ¦ break; 116 } 117 const call& caller_frame = current_call(); @@ -227,7 +227,7 @@ if ('onhashchange' in window) { 163 Transform.push_back(check_indirect_calls_against_header); // idempotent 164 :(code) 165 void check_indirect_calls_against_header(const recipe_ordinal r) { -166 trace(9991, "transform") << "--- type-check 'call' instructions inside recipe " << get(Recipe, r).name << end(); +166 trace(9991, "transform") << "--- type-check 'call' instructions inside recipe " << get(Recipe, r).name << end(); 167 const recipe& caller = get(Recipe, r); 168 for (int i = 0; i < SIZE(caller.steps); ++i) { 169 ¦ const instruction& inst = caller.steps.at(i); @@ -240,14 +240,14 @@ if ('onhashchange' in window) { 176 ¦ if (is_indirect_call_with_ingredients(inst.operation)) { 177 ¦ ¦ for (long int i = /*skip callee*/1; i < min(SIZE(inst.ingredients), SIZE(callee_header.ingredients)+/*skip callee*/1); ++i) { 178 ¦ ¦ ¦ if (!types_coercible(callee_header.ingredients.at(i-/*skip callee*/1), inst.ingredients.at(i))) -179 ¦ ¦ ¦ ¦ raise << maybe(caller.name) << "ingredient " << i-/*skip callee*/1 << " has the wrong type at '" << to_original_string(inst) << "'\n" << end(); +179 ¦ ¦ ¦ ¦ raise << maybe(caller.name) << "ingredient " << i-/*skip callee*/1 << " has the wrong type at '" << to_original_string(inst) << "'\n" << end(); 180 ¦ ¦ } 181 ¦ } 182 ¦ if (is_indirect_call_with_products(inst.operation)) { 183 ¦ ¦ for (long int i = 0; i < min(SIZE(inst.products), SIZE(callee_header.products)); ++i) { 184 ¦ ¦ ¦ if (is_dummy(inst.products.at(i))) continue; 185 ¦ ¦ ¦ if (!types_coercible(callee_header.products.at(i), inst.products.at(i))) -186 ¦ ¦ ¦ ¦ raise << maybe(caller.name) << "product " << i << " has the wrong type at '" << to_original_string(inst) << "'\n" << end(); +186 ¦ ¦ ¦ ¦ raise << maybe(caller.name) << "product " << i << " has the wrong type at '" << to_original_string(inst) << "'\n" << end(); 187 ¦ ¦ } 188 ¦ } 189 } @@ -427,9 +427,9 @@ if ('onhashchange' in window) { 363 void check_for_recipe_literals(const instruction& inst, const recipe& caller) { 364 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 365 ¦ if (is_mu_recipe(inst.ingredients.at(i))) { -366 ¦ ¦ raise << maybe(caller.name) << "missing type for '" << inst.ingredients.at(i).original_string << "' in '" << to_original_string(inst) << "'\n" << end(); +366 ¦ ¦ raise << maybe(caller.name) << "missing type for '" << inst.ingredients.at(i).original_string << "' in '" << to_original_string(inst) << "'\n" << end(); 367 ¦ ¦ if (is_present_in_ingredients(caller, inst.ingredients.at(i).name)) -368 ¦ ¦ ¦ raise << " did you forget 'load-ingredients'?\n" << end(); +368 ¦ ¦ ¦ raise << " did you forget 'load-ingredients'?\n" << end(); 369 ¦ } 370 } 371 } -- cgit 1.4.1-2-gfad0