From a802f0cedc7b5580d746f46ae62fcf8074ae3c49 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 04:41:24 -0800 Subject: 3749 --- html/038new_text.cc.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'html/038new_text.cc.html') diff --git a/html/038new_text.cc.html b/html/038new_text.cc.html index e883bc95..6c16b620 100644 --- a/html/038new_text.cc.html +++ b/html/038new_text.cc.html @@ -93,7 +93,7 @@ if ('onhashchange' in window) { 30 if (is_literal_text(current_instruction().ingredients.at(0))) { 31 products.resize(1); 32 products.at(0).push_back(new_mu_text(current_instruction().ingredients.at(0).name)); - 33 trace(9999, "mem") << "new string alloc: " << products.at(0).at(0) << end(); + 33 trace(9999, "mem") << "new string alloc: " << products.at(0).at(0) << end(); 34 break; 35 } 36 @@ -104,10 +104,10 @@ if ('onhashchange' in window) { 41 //? Total_alloc += string_length+1; 42 //? ++Num_alloc; 43 int result = allocate(string_length+/*array length*/1); - 44 trace(9999, "mem") << "storing string refcount 0 in location " << result << end(); + 44 trace(9999, "mem") << "storing string refcount 0 in location " << result << end(); 45 put(Memory, result, 0); 46 int curr_address = result+/*skip refcount*/1; - 47 trace(9999, "mem") << "storing string length " << string_length << " in location " << curr_address << end(); + 47 trace(9999, "mem") << "storing string length " << string_length << " in location " << curr_address << end(); 48 put(Memory, curr_address, string_length); 49 ++curr_address; // skip length 50 int curr = 0; @@ -116,7 +116,7 @@ if ('onhashchange' in window) { 53 uint32_t curr_character; 54 assert(curr < SIZE(contents)); 55 tb_utf8_char_to_unicode(&curr_character, &raw_contents[curr]); - 56 trace(9999, "mem") << "storing string character " << curr_character << " in location " << curr_address << end(); + 56 trace(9999, "mem") << "storing string character " << curr_character << " in location " << curr_address << end(); 57 put(Memory, curr_address, curr_character); 58 curr += tb_utf8_char_length(raw_contents[curr]); 59 ++curr_address; @@ -233,15 +233,15 @@ if ('onhashchange' in window) { 170 :(before "End Primitive Recipe Checks") 171 case ASSERT: { 172 if (SIZE(inst.ingredients) != 2) { -173 raise << maybe(get(Recipe, r).name) << "'assert' takes exactly two ingredients rather than '" << inst.original_string << "'\n" << end(); +173 raise << maybe(get(Recipe, r).name) << "'assert' takes exactly two ingredients rather than '" << inst.original_string << "'\n" << end(); 174 break; 175 } 176 if (!is_mu_scalar(inst.ingredients.at(0))) { -177 raise << maybe(get(Recipe, r).name) << "'assert' requires a boolean for its first ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +177 raise << maybe(get(Recipe, r).name) << "'assert' requires a boolean for its first ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 178 break; 179 } 180 if (!is_literal_text(inst.ingredients.at(1)) && !is_mu_text(inst.ingredients.at(1))) { -181 raise << maybe(get(Recipe, r).name) << "'assert' requires a text as its second ingredient, but got '" << inst.ingredients.at(1).original_string << "'\n" << end(); +181 raise << maybe(get(Recipe, r).name) << "'assert' requires a text as its second ingredient, but got '" << inst.ingredients.at(1).original_string << "'\n" << end(); 182 break; 183 } 184 break; @@ -250,9 +250,9 @@ if ('onhashchange' in window) { 187 case ASSERT: { 188 if (!ingredients.at(0).at(0)) { 189 if (is_literal_text(current_instruction().ingredients.at(1))) -190 raise << current_instruction().ingredients.at(1).name << '\n' << end(); +190 raise << current_instruction().ingredients.at(1).name << '\n' << end(); 191 else -192 raise << read_mu_text(ingredients.at(1).at(0)) << '\n' << end(); +192 raise << read_mu_text(ingredients.at(1).at(0)) << '\n' << end(); 193 } 194 break; 195 } -- cgit 1.4.1-2-gfad0