about summary refs log tree commit diff stats
path: root/012transform.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-04 09:40:50 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-04 09:40:50 -0700
commit363be37f3f41db063ced940e310d6bba6ef82ef3 (patch)
tree66be4c5a6bf5b07f4fd5ed20eac64c3cfb062bd4 /012transform.cc
parenta1968ebb48c06e1cbc2b813a73e4be235da7b3ee (diff)
downloadmu-363be37f3f41db063ced940e310d6bba6ef82ef3.tar.gz
1702 - experiment: start using 'ordinal' in names
It comes up pretty early in the codebase, but hopefully won't come up
in the mu level until we get to higher-order recipes. Potentially
intimidating name, but such prime real estate with no confusing
overloadings in other projects!
Diffstat (limited to '012transform.cc')
-rw-r--r--012transform.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/012transform.cc b/012transform.cc
index 1a7415c8..f3c76e38 100644
--- a/012transform.cc
+++ b/012transform.cc
@@ -8,7 +8,7 @@ long long int transformed_until;
   recipe() :transformed_until(-1) {}
 
 :(before "End Types")
-typedef void (*transform_fn)(recipe_number);
+typedef void (*transform_fn)(recipe_ordinal);
 
 :(before "End Globals")
 vector<transform_fn> Transform;
@@ -17,11 +17,11 @@ vector<transform_fn> Transform;
 void transform_all() {
 //?   cerr << "AAA transform_all\n"; //? 2
   for (long long int t = 0; t < SIZE(Transform); ++t) {
-    for (map<recipe_number, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {
+    for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {
       recipe& r = p->second;
       if (r.steps.empty()) continue;
       if (r.transformed_until != t-1) continue;
-      (*Transform.at(t))(/*recipe_number*/p->first);
+      (*Transform.at(t))(/*recipe_ordinal*/p->first);
       r.transformed_until = t;
     }
   }
@@ -30,7 +30,7 @@ void transform_all() {
 
 void parse_int_reagents() {
 //?   cout << "parse_int_reagents\n"; //? 1
-  for (map<recipe_number, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {
+  for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {
     recipe& r = p->second;
     if (r.steps.empty()) continue;
     for (long long int index = 0; index < SIZE(r.steps); ++index) {