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/085scenario_console.cc.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'html/085scenario_console.cc.html') diff --git a/html/085scenario_console.cc.html b/html/085scenario_console.cc.html index 9a5586b3..9a3487f8 100644 --- a/html/085scenario_console.cc.html +++ b/html/085scenario_console.cc.html @@ -128,7 +128,7 @@ if ('onhashchange' in window) { 66 for (int i = 0; i < SIZE(r.steps); ++i) { 67 ¦ const instruction& inst = r.steps.at(i); 68 ¦ if (inst.name == "left-click") { - 69 ¦ ¦ trace(9999, "mem") << "storing 'left-click' event starting at " << Current_routine->alloc << end(); + 69 ¦ ¦ trace(9999, "mem") << "storing 'left-click' event starting at " << Current_routine->alloc << end(); 70 ¦ ¦ put(Memory, curr_address, /*tag for 'touch-event' variant of 'event' exclusive-container*/2); 71 ¦ ¦ put(Memory, curr_address+/*skip tag*/1+/*offset of 'type' in 'mouse-event'*/0, TB_KEY_MOUSE_LEFT); 72 ¦ ¦ put(Memory, curr_address+/*skip tag*/1+/*offset of 'row' in 'mouse-event'*/1, to_integer(inst.ingredients.at(0).name)); @@ -136,7 +136,7 @@ if ('onhashchange' in window) { 74 ¦ ¦ curr_address += size_of_event(); 75 ¦ } 76 ¦ else if (inst.name == "press") { - 77 ¦ ¦ trace(9999, "mem") << "storing 'press' event starting at " << curr_address << end(); + 77 ¦ ¦ trace(9999, "mem") << "storing 'press' event starting at " << curr_address << end(); 78 ¦ ¦ string key = inst.ingredients.at(0).name; 79 ¦ ¦ if (is_integer(key)) 80 ¦ ¦ ¦ put(Memory, curr_address+1, to_integer(key)); @@ -157,18 +157,18 @@ if ('onhashchange' in window) { 95 ¦ else { 96 ¦ ¦ // keyboard input 97 ¦ ¦ assert(inst.name == "type"); - 98 ¦ ¦ trace(9999, "mem") << "storing 'type' event starting at " << curr_address << end(); + 98 ¦ ¦ trace(9999, "mem") << "storing 'type' event starting at " << curr_address << end(); 99 ¦ ¦ const string& contents = inst.ingredients.at(0).name; 100 ¦ ¦ const char* raw_contents = contents.c_str(); 101 ¦ ¦ int num_keyboard_events = unicode_length(contents); 102 ¦ ¦ int curr = 0; 103 ¦ ¦ for (int i = 0; i < num_keyboard_events; ++i) { -104 ¦ ¦ ¦ trace(9999, "mem") << "storing 'text' tag at " << curr_address << end(); +104 ¦ ¦ ¦ trace(9999, "mem") << "storing 'text' tag at " << curr_address << end(); 105 ¦ ¦ ¦ put(Memory, curr_address, /*tag for 'text' variant of 'event' exclusive-container*/0); 106 ¦ ¦ ¦ uint32_t curr_character; 107 ¦ ¦ ¦ assert(curr < SIZE(contents)); 108 ¦ ¦ ¦ tb_utf8_char_to_unicode(&curr_character, &raw_contents[curr]); -109 ¦ ¦ ¦ trace(9999, "mem") << "storing character " << curr_character << " at " << curr_address+/*skip exclusive container tag*/1 << end(); +109 ¦ ¦ ¦ trace(9999, "mem") << "storing character " << curr_character << " at " << curr_address+/*skip exclusive container tag*/1 << end(); 110 ¦ ¦ ¦ put(Memory, curr_address+/*skip exclusive container tag*/1, curr_character); 111 ¦ ¦ ¦ curr += tb_utf8_char_length(raw_contents[curr]); 112 ¦ ¦ ¦ curr_address += size_of_event(); @@ -178,9 +178,9 @@ if ('onhashchange' in window) { 116 assert(curr_address == event_data_address+size); 117 // wrap the array of events in a console object 118 int console_address = allocate(size_of_console()); -119 trace(9999, "mem") << "storing console in " << console_address << end(); +119 trace(9999, "mem") << "storing console in " << console_address << end(); 120 put(Memory, CONSOLE, console_address); -121 trace(9999, "mem") << "storing console data in " << console_address+/*skip refcount*/1+/*offset of 'data' in container 'events'*/1 << end(); +121 trace(9999, "mem") << "storing console data in " << console_address+/*skip refcount*/1+/*offset of 'data' in container 'events'*/1 << end(); 122 put(Memory, console_address+/*skip refcount*/1+/*offset of 'data' in container 'events'*/1, event_data_address); 123 // increment refcount for event data 124 put(Memory, event_data_address, 1); @@ -327,7 +327,7 @@ if ('onhashchange' in window) { 265 case REPLACE_IN_CONSOLE: { 266 assert(scalar(ingredients.at(0))); 267 if (!get_or_insert(Memory, CONSOLE)) { -268 ¦ raise << "console not initialized\n" << end(); +268 ¦ raise << "console not initialized\n" << end(); 269 ¦ break; 270 } 271 int console_address = get_or_insert(Memory, CONSOLE); -- cgit 1.4.1-2-gfad0