about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--012transform.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/012transform.cc b/012transform.cc
index 7ed7c0f8..36edd807 100644
--- a/012transform.cc
+++ b/012transform.cc
@@ -27,7 +27,10 @@ typedef void (*transform_fn)(recipe_ordinal);
 :(before "End Globals")
 vector<transform_fn> Transform;
 
-:(after "int main")
+:(before "End One-time Setup")
+initialize_transforms();
+:(code)
+void initialize_transforms() {
   // Begin Transforms
     // Begin Instruction Inserting/Deleting Transforms
     // End Instruction Inserting/Deleting Transforms
@@ -38,8 +41,8 @@ vector<transform_fn> Transform;
 
   // Begin Checks
   // End Checks
+}
 
-:(code)
 void transform_all() {
   trace(9990, "transform") << "=== transform_all()" << end();
 //?   cerr << "=== transform_all\n";