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/042name.cc.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/042name.cc.html') diff --git a/html/042name.cc.html b/html/042name.cc.html index 1310a058..627c77b2 100644 --- a/html/042name.cc.html +++ b/html/042name.cc.html @@ -101,7 +101,7 @@ if ('onhashchange' in window) { 36 :(code) 37 void transform_names(const recipe_ordinal r) { 38 recipe& caller = get(Recipe, r); - 39 trace(9991, "transform") << "--- transform names for recipe " << caller.name << end(); + 39 trace(9991, "transform") << "--- transform names for recipe " << caller.name << end(); 40 bool names_used = false; 41 bool numeric_locations_used = false; 42 map<string, int>& names = Name[r]; @@ -141,8 +141,8 @@ if ('onhashchange' in window) { 76 ¦ ¦ if (is_numeric_location(product)) numeric_locations_used = true; 77 ¦ ¦ if (is_named_location(product)) names_used = true; 78 ¦ ¦ if (is_integer(product.name)) continue; - 79 ¦ ¦ if (names.find(product.name) == names.end()) { - 80 ¦ ¦ ¦ trace(9993, "name") << "assign " << product.name << " " << curr_idx << end(); + 79 ¦ ¦ if (names.find(product.name) == names.end()) { + 80 ¦ ¦ ¦ trace(9993, "name") << "assign " << product.name << " " << curr_idx << end(); 81 ¦ ¦ ¦ names[product.name] = curr_idx; 82 ¦ ¦ ¦ curr_idx += size_of(product); 83 ¦ ¦ } @@ -158,12 +158,12 @@ if ('onhashchange' in window) { 93 ¦ } 94 } 95 if (names_used && numeric_locations_used) - 96 ¦ raise << maybe(caller.name) << "mixing variable names and numeric addresses\n" << end(); + 96 ¦ raise << maybe(caller.name) << "mixing variable names and numeric addresses\n" << end(); 97 } 98 99 bool is_disqualified(/*mutable*/ reagent& x, const instruction& inst, const string& recipe_name) { 100 if (!x.type) { -101 ¦ raise << maybe(recipe_name) << "missing type for '" << x.original_string << "' in '" << to_original_string(inst) << "'\n" << end(); +101 ¦ raise << maybe(recipe_name) << "missing type for '" << x.original_string << "' in '" << to_original_string(inst) << "'\n" << end(); 102 ¦ // missing-type Error 1 103 ¦ return true; 104 } @@ -199,7 +199,7 @@ if ('onhashchange' in window) { 134 const type_info& container = get(Type, t); 135 for (int i = 0; i < SIZE(container.elements); ++i) 136 ¦ if (container.elements.at(i).name == name) return i; -137 raise << maybe(recipe_name) << "unknown element '" << name << "' in container '" << get(Type, t).name << "'\n" << end(); +137 raise << maybe(recipe_name) << "unknown element '" << name << "' in container '" << get(Type, t).name << "'\n" << end(); 138 return -1; 139 } 140 @@ -297,7 +297,7 @@ if ('onhashchange' in window) { 232 :(before "End update GET offset_value in Check") 233 else { 234 if (!offset.initialized) { -235 ¦ raise << maybe(get(Recipe, r).name) << "uninitialized offset '" << offset.name << "' in '" << to_original_string(inst) << "'\n" << end(); +235 ¦ raise << maybe(get(Recipe, r).name) << "uninitialized offset '" << offset.name << "' in '" << to_original_string(inst) << "'\n" << end(); 236 ¦ break; 237 } 238 offset_value = offset.value; @@ -327,7 +327,7 @@ if ('onhashchange' in window) { 262 ¦ type_ordinal base_type = skip_addresses(inst.ingredients.at(0).type); 263 ¦ if (contains_key(Type, base_type)) { // otherwise we'll raise an error elsewhere 264 ¦ ¦ inst.ingredients.at(1).set_value(find_element_name(base_type, inst.ingredients.at(1).name, get(Recipe, r).name)); -265 ¦ ¦ trace(9993, "name") << "element " << inst.ingredients.at(1).name << " of type " << get(Type, base_type).name << " is at offset " << no_scientific(inst.ingredients.at(1).value) << end(); +265 ¦ ¦ trace(9993, "name") << "element " << inst.ingredients.at(1).name << " of type " << get(Type, base_type).name << " is at offset " << no_scientific(inst.ingredients.at(1).value) << end(); 266 ¦ } 267 } 268 } @@ -368,7 +368,7 @@ if ('onhashchange' in window) { 303 // convert variant names of exclusive containers 304 if (inst.name == "maybe-convert") { 305 if (SIZE(inst.ingredients) != 2) { -306 ¦ raise << maybe(get(Recipe, r).name) << "exactly 2 ingredients expected in '" << to_original_string(inst) << "'\n" << end(); +306 ¦ raise << maybe(get(Recipe, r).name) << "exactly 2 ingredients expected in '" << to_original_string(inst) << "'\n" << end(); 307 ¦ break; 308 } 309 assert(is_literal(inst.ingredients.at(1))); @@ -377,7 +377,7 @@ if ('onhashchange' in window) { 312 ¦ type_ordinal base_type = skip_addresses(inst.ingredients.at(0).type); 313 ¦ if (contains_key(Type, base_type)) { // otherwise we'll raise an error elsewhere 314 ¦ ¦ inst.ingredients.at(1).set_value(find_element_name(base_type, inst.ingredients.at(1).name, get(Recipe, r).name)); -315 ¦ ¦ trace(9993, "name") << "variant " << inst.ingredients.at(1).name << " of type " << get(Type, base_type).name << " has tag " << no_scientific(inst.ingredients.at(1).value) << end(); +315 ¦ ¦ trace(9993, "name") << "variant " << inst.ingredients.at(1).name << " of type " << get(Type, base_type).name << " has tag " << no_scientific(inst.ingredients.at(1).value) << end(); 316 ¦ } 317 } 318 } -- cgit 1.4.1-2-gfad0