From 2c678a4e1d7f97c862342ee19cf2d6ee6e901d85 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 29 May 2017 14:21:32 -0700 Subject: 3897 - various updates to documentation --- html/021check_instruction.cc.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/021check_instruction.cc.html') diff --git a/html/021check_instruction.cc.html b/html/021check_instruction.cc.html index 07182373..eea25c66 100644 --- a/html/021check_instruction.cc.html +++ b/html/021check_instruction.cc.html @@ -78,17 +78,17 @@ if ('onhashchange' in window) { 15 void check_instruction(const recipe_ordinal r) { 16 trace(9991, "transform") << "--- perform checks for recipe " << get(Recipe, r).name << end(); 17 map<string, vector<type_ordinal> > metadata; - 18 for (int i = 0; i < SIZE(get(Recipe, r).steps); ++i) { + 18 for (int i = 0; i < SIZE(get(Recipe, r).steps); ++i) { 19 ¦ instruction& inst = get(Recipe, r).steps.at(i); 20 ¦ if (inst.is_label) continue; 21 ¦ switch (inst.operation) { 22 ¦ ¦ // Primitive Recipe Checks 23 ¦ ¦ case COPY: { - 24 ¦ ¦ ¦ if (SIZE(inst.products) > SIZE(inst.ingredients)) { + 24 ¦ ¦ ¦ if (SIZE(inst.products) > SIZE(inst.ingredients)) { 25 ¦ ¦ ¦ ¦ raise << maybe(get(Recipe, r).name) << "too many products in '" << to_original_string(inst) << "'\n" << end(); 26 ¦ ¦ ¦ ¦ break; 27 ¦ ¦ ¦ } - 28 ¦ ¦ ¦ for (int i = 0; i < SIZE(inst.products); ++i) { + 28 ¦ ¦ ¦ for (int i = 0; i < SIZE(inst.products); ++i) { 29 ¦ ¦ ¦ ¦ if (!types_coercible(inst.products.at(i), inst.ingredients.at(i))) { 30 ¦ ¦ ¦ ¦ ¦ raise << maybe(get(Recipe, r).name) << "can't copy '" << inst.ingredients.at(i).original_string << "' to '" << inst.products.at(i).original_string << "'; types don't match\n" << end(); 31 ¦ ¦ ¦ ¦ ¦ goto finish_checking_instruction; @@ -230,7 +230,7 @@ if ('onhashchange' in window) { 167 } 168 169 void test_type_abbreviations_match_raw_types() { -170 put(Type_abbreviations, "text", new_type_tree("address:array:character")); +170 put(Type_abbreviations, "text", new_type_tree("address:array:character")); 171 // a has type (address buffer (address array character)) 172 reagent a("a:address:buffer:text"); 173 expand_type_abbreviations(a.type); @@ -238,7 +238,7 @@ if ('onhashchange' in window) { 175 reagent b("b:address:buffer:address:array:character"); 176 CHECK(types_strictly_match(a, b)); 177 delete Type_abbreviations["text"]; -178 put(Type_abbreviations, "text", NULL); +178 put(Type_abbreviations, "text", NULL); 179 } 180 181 //: helpers -- cgit 1.4.1-2-gfad0