From 204dae921abff0c70e017215bb3c91fa6ca11aff Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 26 Dec 2016 11:44:14 -0800 Subject: 3710 Turns out we don't need to explicitly add anchors for each line. Vim's TOhtml has magic for that out of the box. --- html/013update_operation.cc.html | 70 ++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'html/013update_operation.cc.html') diff --git a/html/013update_operation.cc.html b/html/013update_operation.cc.html index 3baddccc..fb6a12b7 100644 --- a/html/013update_operation.cc.html +++ b/html/013update_operation.cc.html @@ -58,41 +58,41 @@ if ('onhashchange' in window) {
- 1 //: Once all code is loaded, save operation ids of instructions and check that
- 2 //: nothing's undefined.
- 3 
- 4 :(before "End Instruction Modifying Transforms")
- 5 Transform.push_back(update_instruction_operations);  // idempotent
- 6 
- 7 :(code)
- 8 void update_instruction_operations(const recipe_ordinal r) {
- 9   trace(9991, "transform") << "--- compute instruction operations for recipe " << get(Recipe, r).name << end();
-10   recipe& caller = get(Recipe, r);
-11 //?   cerr << "--- compute instruction operations for recipe " << caller.name << '\n';
-12   for (int index = 0;  index < SIZE(caller.steps);  ++index) {
-13     instruction& inst = caller.steps.at(index);
-14     if (inst.is_label) continue;
-15     if (!contains_key(Recipe_ordinal, inst.name)) {
-16       raise << maybe(caller.name) << "instruction '" << inst.name << "' has no recipe\n" << end();
-17       continue;
-18     }
-19     inst.operation = get(Recipe_ordinal, inst.name);
-20     // End Instruction Operation Checks
-21   }
-22 }
-23 
-24 // hook to suppress inserting recipe name into errors
-25 string maybe(string s) {
-26   return s + ": ";
-27 }
-28 
-29 :(scenarios transform)
-30 :(scenario missing_arrow)
-31 % Hide_errors = true;
-32 def main [
-33   1:number , copy 0  # typo: ',' instead of '<-'
-34 ]
-35 +error: main: instruction '1:number' has no recipe
+ 1 //: Once all code is loaded, save operation ids of instructions and check that
+ 2 //: nothing's undefined.
+ 3 
+ 4 :(before "End Instruction Modifying Transforms")
+ 5 Transform.push_back(update_instruction_operations);  // idempotent
+ 6 
+ 7 :(code)
+ 8 void update_instruction_operations(const recipe_ordinal r) {
+ 9   trace(9991, "transform") << "--- compute instruction operations for recipe " << get(Recipe, r).name << end();
+10   recipe& caller = get(Recipe, r);
+11 //?   cerr << "--- compute instruction operations for recipe " << caller.name << '\n';
+12   for (int index = 0;  index < SIZE(caller.steps);  ++index) {
+13     instruction& inst = caller.steps.at(index);
+14     if (inst.is_label) continue;
+15     if (!contains_key(Recipe_ordinal, inst.name)) {
+16       raise << maybe(caller.name) << "instruction '" << inst.name << "' has no recipe\n" << end();
+17       continue;
+18     }
+19     inst.operation = get(Recipe_ordinal, inst.name);
+20     // End Instruction Operation Checks
+21   }
+22 }
+23 
+24 // hook to suppress inserting recipe name into errors
+25 string maybe(string s) {
+26   return s + ": ";
+27 }
+28 
+29 :(scenarios transform)
+30 :(scenario missing_arrow)
+31 % Hide_errors = true;
+32 def main [
+33   1:number , copy 0  # typo: ',' instead of '<-'
+34 ]
+35 +error: main: instruction '1:number' has no recipe
 
-- cgit 1.4.1-2-gfad0