From 65361948ca7975553757a0e0df4ac7352413044c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 14 May 2015 16:04:45 -0700 Subject: 1376 - update github docs --- html/075scenario_keyboard.cc.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/075scenario_keyboard.cc.html') diff --git a/html/075scenario_keyboard.cc.html b/html/075scenario_keyboard.cc.html index 3add7460..2a612899 100644 --- a/html/075scenario_keyboard.cc.html +++ b/html/075scenario_keyboard.cc.html @@ -2,7 +2,7 @@ -Mu - 075scenario_keyboard.cc +~/Desktop/s/mu/075scenario_keyboard.cc @@ -45,20 +45,20 @@ scenario keyboard-in-scenario [ ] memory-should-contain [ 1 <- 97 # 'a' - 2 <- 1 # first read-key call found a character + 2 <- 1 3 <- 98 # 'b' - 4 <- 1 # second read-key call found a character + 4 <- 1 5 <- 99 # 'c' - 6 <- 1 # third read-key call found a character - 7 <- 0 - 8 <- 0 # fourth read-key call didn't find a character + 6 <- 1 + 7 <- 0 # eof + 8 <- 1 ] ] :(before "End Scenario Globals") const size_t KEYBOARD = Next_predefined_global_for_scenarios++; :(before "End Predefined Scenario Locals In Run") -Name[tmp_recipe[0]]["keyboard"] = KEYBOARD; +Name[tmp_recipe.at(0)]["keyboard"] = KEYBOARD; :(before "End Rewrite Instruction(curr)") // rewrite `assume-keyboard string` to @@ -71,17 +71,17 @@ if (curr.name == < curr.operation = Recipe_number["new"]; assert(curr.products.empty()); curr.products.push_back(reagent("keyboard:address")); - curr.products[0].set_value(KEYBOARD); + curr.products.at(0).set_value(KEYBOARD); result.steps.push_back(curr); // hacky that "Rewrite Instruction" is converting to multiple instructions // leave second instruction in curr curr.clear(); curr.operation = Recipe_number["init-fake-keyboard"]; assert(curr.ingredients.empty()); curr.ingredients.push_back(reagent("keyboard:address")); - curr.ingredients[0].set_value(KEYBOARD); + curr.ingredients.at(0).set_value(KEYBOARD); assert(curr.products.empty()); curr.products.push_back(reagent("keyboard:address")); - curr.products[0].set_value(KEYBOARD); + curr.products.at(0).set_value(KEYBOARD); } -- cgit 1.4.1-2-gfad0