about summary refs log tree commit diff stats
path: root/075scenario_console.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 /075scenario_console.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 '075scenario_console.cc')
-rw-r--r--075scenario_console.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/075scenario_console.cc b/075scenario_console.cc
index 427906e9..c5946617 100644
--- a/075scenario_console.cc
+++ b/075scenario_console.cc
@@ -43,7 +43,7 @@ if (s == "console") return true;
 :(before "End Primitive Recipe Declarations")
 ASSUME_CONSOLE,
 :(before "End Primitive Recipe Numbers")
-Recipe_number["assume-console"] = ASSUME_CONSOLE;
+Recipe_ordinal["assume-console"] = ASSUME_CONSOLE;
 :(before "End Primitive Recipe Implementations")
 case ASSUME_CONSOLE: {
 //?   cerr << "aaa: " << current_instruction().ingredients.at(0).name << '\n'; //? 2
@@ -162,7 +162,7 @@ scenario events-in-scenario [
 :(before "End Primitive Recipe Declarations")
 REPLACE_IN_CONSOLE,
 :(before "End Primitive Recipe Numbers")
-Recipe_number["replace-in-console"] = REPLACE_IN_CONSOLE;
+Recipe_ordinal["replace-in-console"] = REPLACE_IN_CONSOLE;
 :(before "End Primitive Recipe Implementations")
 case REPLACE_IN_CONSOLE: {
   assert(scalar(ingredients.at(0)));
@@ -203,8 +203,8 @@ long long int size_of_event() {
   // memoize result if already computed
   static long long int result = 0;
   if (result) return result;
-  vector<type_number> type;
-  type.push_back(Type_number["event"]);
+  vector<type_ordinal> type;
+  type.push_back(Type_ordinal["event"]);
   result = size_of(type);
   return result;
 }
@@ -213,9 +213,9 @@ long long int size_of_events() {
   // memoize result if already computed
   static long long int result = 0;
   if (result) return result;
-  vector<type_number> type;
-  assert(Type_number["console"]);
-  type.push_back(Type_number["console"]);
+  vector<type_ordinal> type;
+  assert(Type_ordinal["console"]);
+  type.push_back(Type_ordinal["console"]);
   result = size_of(type);
   return result;
 }