From c0f84b1ffa18eaf6f399aafe462f2a0f705dd009 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 7 Dec 2017 16:22:23 -0800 Subject: 4155 --- html/069hash.cc.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html/069hash.cc.html') diff --git a/html/069hash.cc.html b/html/069hash.cc.html index defa9784..6af75ee9 100644 --- a/html/069hash.cc.html +++ b/html/069hash.cc.html @@ -80,14 +80,14 @@ if ('onhashchange' in window) { 15 :(before "End Primitive Recipe Checks") 16 case HASH: { 17 if (SIZE(inst.ingredients) != 1) { - 18 ¦ raise << maybe(get(Recipe, r).name) << "'hash' takes exactly one ingredient rather than '" << to_original_string(inst) << "'\n" << end(); + 18 ¦ raise << maybe(get(Recipe, r).name) << "'hash' takes exactly one ingredient rather than '" << to_original_string(inst) << "'\n" << end(); 19 ¦ break; 20 } 21 break; 22 } 23 :(before "End Primitive Recipe Implementations") 24 case HASH: { - 25 const reagent& input = current_instruction().ingredients.at(0); + 25 const reagent& input = current_instruction().ingredients.at(0); 26 products.resize(1); 27 products.at(0).push_back(hash(0, input)); 28 break; @@ -120,10 +120,10 @@ if ('onhashchange' in window) { 55 56 size_t hash_mu_address(size_t h, reagent& r) { 57 if (r.value == 0) return 0; - 58 trace("mem") << "location " << r.value << " is " << no_scientific(get_or_insert(Memory, r.value)) << end(); + 58 trace("mem") << "location " << r.value << " is " << no_scientific(get_or_insert(Memory, r.value)) << end(); 59 r.set_value(get_or_insert(Memory, r.value)); 60 if (r.value != 0) { - 61 ¦ trace("mem") << "skipping refcount at " << r.value << end(); + 61 ¦ trace("mem") << "skipping refcount at " << r.value << end(); 62 ¦ r.set_value(r.value+1); // skip refcount 63 } 64 drop_from_type(r, "address"); @@ -175,7 +175,7 @@ if ('onhashchange' in window) { 110 reagent/*copy*/ variant = variant_type(r, tag); 111 // todo: move this error to container definition time 112 if (has_property(variant, "ignore-for-hash")) -113 ¦ raise << get(Type, type->value).name << ": /ignore-for-hash won't work in exclusive containers\n" << end(); +113 ¦ raise << get(Type, type->value).name << ": /ignore-for-hash won't work in exclusive containers\n" << end(); 114 variant.set_value(r.value + /*skip tag*/1); 115 h = hash(h, variant); 116 return h; @@ -416,11 +416,11 @@ if ('onhashchange' in window) { 351 :(before "End Primitive Recipe Checks") 352 case HASH_OLD: { 353 if (SIZE(inst.ingredients) != 1) { -354 ¦ raise << maybe(get(Recipe, r).name) << "'hash_old' takes exactly one ingredient rather than '" << to_original_string(inst) << "'\n" << end(); +354 ¦ raise << maybe(get(Recipe, r).name) << "'hash_old' takes exactly one ingredient rather than '" << to_original_string(inst) << "'\n" << end(); 355 ¦ break; 356 } 357 if (!is_mu_text(inst.ingredients.at(0))) { -358 ¦ raise << maybe(get(Recipe, r).name) << "'hash_old' currently only supports texts (address array character), but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +358 ¦ raise << maybe(get(Recipe, r).name) << "'hash_old' currently only supports texts (address array character), but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 359 ¦ break; 360 } 361 break; -- cgit 1.4.1-2-gfad0