From 4690ce81e079fc58cae8d6d583e5e3eb3ed81a83 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 9 Mar 2016 02:56:27 -0800 Subject: 2743 Looks like "TOhtml | " doesn't work on Mac OS X for some reason.. --- html/013update_operation.cc.html | 42 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) (limited to 'html/013update_operation.cc.html') diff --git a/html/013update_operation.cc.html b/html/013update_operation.cc.html index 956fb4eb..8c2780cb 100644 --- a/html/013update_operation.cc.html +++ b/html/013update_operation.cc.html @@ -3,33 +3,26 @@ Mu - 013update_operation.cc - - + + - - + - - -
+
 //: Once all code is loaded, save operation ids of instructions and check that
 //: nothing's undefined.
 
@@ -37,15 +30,15 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 Transform.push_back(update_instruction_operations);  // idempotent
 
 :(code)
-void update_instruction_operations(recipe_ordinal r) {
+void update_instruction_operations(recipe_ordinal r) {
   trace(9991, "transform") << "--- compute instruction operations for recipe " << get(Recipe, r).name << end();
   recipe& caller = get(Recipe, r);
 //?   cerr << "--- compute instruction operations for recipe " << caller.name << '\n';
-  for (long long int index = 0; index < SIZE(caller.steps); ++index) {
+  for (long long int index = 0; index < SIZE(caller.steps); ++index) {
     instruction& inst = caller.steps.at(index);
-    if (inst.is_label) continue;
-    if (!contains_key(Recipe_ordinal, inst.name)) {
-      raise_error << maybe(caller.name) << "instruction " << inst.name << " has no recipe\n" << end();
+    if (inst.is_label) continue;
+    if (!contains_key(Recipe_ordinal, inst.name)) {
+      raise << maybe(caller.name) << "instruction " << inst.name << " has no recipe\n" << end();
       continue;
     }
     inst.operation = get(Recipe_ordinal, inst.name);
@@ -57,13 +50,6 @@ void update_instruction_operations(recipe_ordinal
 string maybe(string s) {
   return s + ": ";
 }
-
-// temporarily suppress run
-void transform(string form) {
-  load(form);
-  transform_all();
-}
 
- -- cgit 1.4.1-2-gfad0