From a654e4ecace2d506d1b10f1dde2c287ebe84ef37 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 26 Mar 2016 23:59:59 -0700 Subject: 2812 --- html/052tangle.cc.html | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) (limited to 'html/052tangle.cc.html') diff --git a/html/052tangle.cc.html b/html/052tangle.cc.html index f698a972..4ffcaebf 100644 --- a/html/052tangle.cc.html +++ b/html/052tangle.cc.html @@ -3,28 +3,36 @@ Mu - 052tangle.cc - - + + - + + + + -
+
 //: Allow code for recipes to be pulled in from multiple places and inserted
 //: at special labels called 'waypoints'. Unlike jump targets, a recipe can
 //: have multiple ambiguous waypoints with the same name. Any 'before' and
@@ -95,12 +103,12 @@ tangle_done = false;:(code)
 void insert_fragments(const recipe_ordinal r) {
   bool made_progress = true;
-  long long int pass = 0;
+  int pass = 0;
   while (made_progress) {
     made_progress = false;
     // create a new vector because insertions invalidate iterators
     vector<instruction> result;
-    for (long long int i = 0; i < SIZE(get(Recipe, r).steps); ++i) {
+    for (int i = 0; i < SIZE(get(Recipe, r).steps); ++i) {
       const instruction& inst = get(Recipe, r).steps.at(i);
       if (!inst.is_label || !is_waypoint(inst.label) || inst.tangle_done) {
         result.push_back(inst);
@@ -132,12 +140,12 @@ tangle_done = false;// so we'll keep jump targets local to the specific before/after fragment
   // that introduces them.
   set<string> jump_targets;
-  for (long long int i = 0; i < SIZE(patch); ++i) {
+  for (int i = 0; i < SIZE(patch); ++i) {
     const instruction& inst = patch.at(i);
     if (inst.is_label && is_jump_target(inst.label))
       jump_targets.insert(inst.label);
   }
-  for (long long int i = 0; i < SIZE(patch); ++i) {
+  for (int i = 0; i < SIZE(patch); ++i) {
     instruction inst = patch.at(i);
     if (inst.is_label) {
       if (contains_key(jump_targets, inst.label))
@@ -145,7 +153,7 @@ tangle_done = false;.push_back(inst);
       continue;
     }
-    for (long long int j = 0; j < SIZE(inst.ingredients); ++j) {
+    for (int j = 0; j < SIZE(inst.ingredients); ++j) {
       reagent& x = inst.ingredients.at(j);
       if (!is_literal(x)) continue;
       if (x.type->name == "label" && contains_key(jump_targets, x.name))
@@ -444,3 +452,4 @@ $mem: 2
 
+ -- cgit 1.4.1-2-gfad0