about summary refs log tree commit diff stats
path: root/052tangle.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-06 17:29:52 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-06 17:29:52 -0800
commitb2e4056d6674515ed9ba3b56c40ec19c9b7eae3a (patch)
treee150b769e4a3df1b1a5336408cf8c4f3a573df0b /052tangle.cc
parent57d01f212c8cddb14f585b3ab32984d11a9222e3 (diff)
downloadmu-b2e4056d6674515ed9ba3b56c40ec19c9b7eae3a.tar.gz
2383 - new concern: idempotence of transforms
I'd not paid any attention to it so far, but I need to do so from now
on.
Diffstat (limited to '052tangle.cc')
-rw-r--r--052tangle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/052tangle.cc b/052tangle.cc
index c9f9f28c..36284904 100644
--- a/052tangle.cc
+++ b/052tangle.cc
@@ -55,7 +55,7 @@ else if (command == "after") {
 //: after all recipes are loaded, insert fragments at appropriate labels.
 
 :(after "Begin Transforms")
-Transform.push_back(insert_fragments);
+Transform.push_back(insert_fragments);  // NOT idempotent
 
 //: We might need to perform multiple passes, in case inserted fragments
 //: include more labels that need further insertions. Track which labels we've
@@ -136,7 +136,7 @@ bool is_waypoint(string label) {
 :(before "End Globals")
 bool Transform_check_insert_fragments_Ran = false;
 :(after "Transform.push_back(insert_fragments)")
-Transform.push_back(check_insert_fragments);
+Transform.push_back(check_insert_fragments);  // idempotent
 :(code)
 void check_insert_fragments(unused recipe_ordinal) {
   if (Transform_check_insert_fragments_Ran) return;