about summary refs log tree commit diff stats
path: root/linux/bootstrap/031transforms.cc
diff options
context:
space:
mode:
Diffstat (limited to 'linux/bootstrap/031transforms.cc')
-rw-r--r--linux/bootstrap/031transforms.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/bootstrap/031transforms.cc b/linux/bootstrap/031transforms.cc
new file mode 100644
index 00000000..5f13b697
--- /dev/null
+++ b/linux/bootstrap/031transforms.cc
@@ -0,0 +1,12 @@
+:(before "End Types")
+typedef void (*transform_fn)(program&);
+:(before "End Globals")
+vector<transform_fn> Transform;
+
+:(before "End transform(program& p)")
+for (int t = 0;  t < SIZE(Transform);  ++t)
+  (*Transform.at(t))(p);
+
+:(before "End One-time Setup")
+// Begin Transforms
+// End Transforms