From a802f0cedc7b5580d746f46ae62fcf8074ae3c49 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 04:41:24 -0800 Subject: 3749 --- html/052tangle.cc.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'html/052tangle.cc.html') diff --git a/html/052tangle.cc.html b/html/052tangle.cc.html index 4f0b26a4..32289deb 100644 --- a/html/052tangle.cc.html +++ b/html/052tangle.cc.html @@ -106,30 +106,30 @@ if ('onhashchange' in window) { 44 string label = next_word(in); 45 if (label.empty()) { 46 assert(!has_data(in)); - 47 raise << "incomplete 'before' block at end of file\n" << end(); + 47 raise << "incomplete 'before' block at end of file\n" << end(); 48 return result; 49 } 50 recipe tmp; 51 slurp_body(in, tmp); 52 if (is_waypoint(label)) - 53 Before_fragments[label].steps.insert(Before_fragments[label].steps.end(), tmp.steps.begin(), tmp.steps.end()); + 53 Before_fragments[label].steps.insert(Before_fragments[label].steps.end(), tmp.steps.begin(), tmp.steps.end()); 54 else - 55 raise << "can't tangle before non-waypoint " << label << '\n' << end(); + 55 raise << "can't tangle before non-waypoint " << label << '\n' << end(); 56 // End before Command Handler 57 } 58 else if (command == "after") { 59 string label = next_word(in); 60 if (label.empty()) { 61 assert(!has_data(in)); - 62 raise << "incomplete 'after' block at end of file\n" << end(); + 62 raise << "incomplete 'after' block at end of file\n" << end(); 63 return result; 64 } 65 recipe tmp; 66 slurp_body(in, tmp); 67 if (is_waypoint(label)) - 68 After_fragments[label].steps.insert(After_fragments[label].steps.begin(), tmp.steps.begin(), tmp.steps.end()); + 68 After_fragments[label].steps.insert(After_fragments[label].steps.begin(), tmp.steps.begin(), tmp.steps.end()); 69 else - 70 raise << "can't tangle after non-waypoint " << label << '\n' << end(); + 70 raise << "can't tangle after non-waypoint " << label << '\n' << end(); 71 // End after Command Handler 72 } 73 @@ -152,7 +152,7 @@ if ('onhashchange' in window) { 90 } 91 92 void insert_fragments(recipe& r) { - 93 trace(9991, "transform") << "--- insert fragments into recipe " << r.name << end(); + 93 trace(9991, "transform") << "--- insert fragments into recipe " << r.name << end(); 94 bool made_progress = true; 95 int pass = 0; 96 while (made_progress) { @@ -173,12 +173,12 @@ if ('onhashchange' in window) { 111 // ok to use contains_key even though Before_fragments uses [], 112 // because appending an empty recipe is a noop 113 if (contains_key(Before_fragments, inst.label)) { -114 trace(9992, "transform") << "insert fragments before label " << inst.label << end(); +114 trace(9992, "transform") << "insert fragments before label " << inst.label << end(); 115 append_fragment(result, Before_fragments[inst.label].steps, prefix.str()); 116 } 117 result.push_back(inst); 118 if (contains_key(After_fragments, inst.label)) { -119 trace(9992, "transform") << "insert fragments after label " << inst.label << end(); +119 trace(9992, "transform") << "insert fragments after label " << inst.label << end(); 120 append_fragment(result, After_fragments[inst.label].steps, prefix.str()); 121 } 122 } @@ -227,13 +227,13 @@ if ('onhashchange' in window) { 165 check_insert_fragments(); 166 :(code) 167 void check_insert_fragments() { -168 for (map<string, recipe>::iterator p = Before_fragments.begin(); p != Before_fragments.end(); ++p) { +168 for (map<string, recipe>::iterator p = Before_fragments.begin(); p != Before_fragments.end(); ++p) { 169 if (!contains_key(Fragments_used, p->first)) -170 raise << "could not locate insert before label " << p->first << '\n' << end(); +170 raise << "could not locate insert before label " << p->first << '\n' << end(); 171 } -172 for (map<string, recipe>::iterator p = After_fragments.begin(); p != After_fragments.end(); ++p) { +172 for (map<string, recipe>::iterator p = After_fragments.begin(); p != After_fragments.end(); ++p) { 173 if (!contains_key(Fragments_used, p->first)) -174 raise << "could not locate insert after label " << p->first << '\n' << end(); +174 raise << "could not locate insert after label " << p->first << '\n' << end(); 175 } 176 } 177 @@ -514,21 +514,21 @@ if ('onhashchange' in window) { 452 " 1:num/raw <- copy 34\n" 453 "]\n"); 454 transform_all(); -455 CHECK_TRACE_DOESNT_CONTAIN_ERRORS(); +455 CHECK_TRACE_DOESNT_CONTAIN_ERRORS(); 456 Hide_errors = true; 457 // try to tangle into recipe foo after transform 458 load("before <label> [\n" 459 " 2:num/raw <- copy 35\n" 460 "]\n"); -461 CHECK_TRACE_CONTAINS_ERRORS(); +461 CHECK_TRACE_CONTAINS_ERRORS(); 462 } 463 464 :(before "End before Command Handler") 465 if (contains_key(Fragments_used, label)) -466 raise << "we've already tangled some code at label " << label << " in a previous call to transform_all(). Those locations won't be updated.\n" << end(); +466 raise << "we've already tangled some code at label " << label << " in a previous call to transform_all(). Those locations won't be updated.\n" << end(); 467 :(before "End after Command Handler") 468 if (contains_key(Fragments_used, label)) -469 raise << "we've already tangled some code at label " << label << " in a previous call to transform_all(). Those locations won't be updated.\n" << end(); +469 raise << "we've already tangled some code at label " << label << " in a previous call to transform_all(). Those locations won't be updated.\n" << end(); -- cgit 1.4.1-2-gfad0