From e4ac3c9e6e5464a0fc0f8fd3763a572e0e180c04 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 1 Dec 2018 14:13:33 -0800 Subject: 4814 --- html/012transform.cc.html | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'html/012transform.cc.html') diff --git a/html/012transform.cc.html b/html/012transform.cc.html index f6471294..bd67993f 100644 --- a/html/012transform.cc.html +++ b/html/012transform.cc.html @@ -11,17 +11,20 @@ @@ -55,6 +58,7 @@ if ('onhashchange' in window) { +https://github.com/akkartik/mu/blob/master/012transform.cc
   1 //: Phase 2: Filter loaded recipes through an extensible list of 'transforms'.
   2 //:
@@ -83,7 +87,7 @@ if ('onhashchange' in window) {
  25 typedef void (*transform_fn)(const recipe_ordinal);
  26 
  27 :(before "End Globals")
- 28 vector<transform_fn> Transform;
+ 28 vector<transform_fn> Transform;
  29 
  30 :(before "End One-time Setup")
  31 initialize_transforms();
@@ -104,12 +108,12 @@ if ('onhashchange' in window) {
  46 void transform_all() {
  47   trace(9990, "transform") << "=== transform_all()" << end();
  48   // Begin transform_all
- 49   for (int t = 0;  t < SIZE(Transform);  ++t) {
- 50     for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin();  p != Recipe.end();  ++p) {
+ 49   for (int t = 0;  t < SIZE(Transform);  ++t) {
+ 50     for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin();  p != Recipe.end();  ++p) {
  51       recipe& r = p->second;
  52       if (r.transformed_until != t-1) continue;
  53       // End Transform Checks
- 54       (*Transform.at(t))(/*recipe_ordinal*/p->first);
+ 54       (*Transform.at(t))(/*recipe_ordinal*/p->first);
  55       r.transformed_until = t;
  56     }
  57   }
@@ -124,14 +128,14 @@ if ('onhashchange' in window) {
  66 //: helpful errors we track a count of the number of calls made to
  67 //: transform_all().
  68 :(before "End Globals")
- 69 int Num_calls_to_transform_all = 0;
+ 69 int Num_calls_to_transform_all = 0;
  70 :(after "void transform_all()")
- 71   ++Num_calls_to_transform_all;
+ 71   ++Num_calls_to_transform_all;
  72 
  73 :(code)
  74 void parse_int_reagents() {
  75   trace(9991, "transform") << "--- parsing any uninitialized reagents as integers" << end();
- 76   for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin();  p != Recipe.end();  ++p) {
+ 76   for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin();  p != Recipe.end();  ++p) {
  77     recipe& r = p->second;
  78     if (r.steps.empty()) continue;
  79     for (int index = 0;  index < SIZE(r.steps);  ++index) {
-- 
cgit 1.4.1-2-gfad0