about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-15 08:41:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-15 08:41:23 -0700
commiteb7afe5d4337637e86e27a01562c08de96dd5be1 (patch)
tree73ac83e23358e67c124879451f89ddc71d2bb3a5
parent275de0a1ced166edef6f48ab69f420d1fff77e5b (diff)
downloadmu-eb7afe5d4337637e86e27a01562c08de96dd5be1.tar.gz
926
-rw-r--r--cpp/012run4
-rw-r--r--cpp/020call2
2 files changed, 2 insertions, 4 deletions
diff --git a/cpp/012run b/cpp/012run
index 4ffe558a..03bb2be4 100644
--- a/cpp/012run
+++ b/cpp/012run
@@ -49,8 +49,6 @@ void run(recipe_number r) {
 }
 
 void run(routine rr) {
-// #defines save us the trouble of updating aliases when dependent variables
-// change.
   while (!rr.calls.empty()) {
     vector<instruction>& instructions = Recipe[rr.calls.top().running_recipe].steps;
     while (rr.calls.top().pc >= instructions.size()) {
@@ -71,7 +69,7 @@ void run(routine rr) {
       }
       // End Primitive Recipe Implementations.
       default: {
-        cout << "non primitive op: " << instructions[pc].operation << '\n';
+        cout << "not a primitive op: " << instructions[pc].operation << '\n';
       }
     }
     ++pc;
diff --git a/cpp/020call b/cpp/020call
index c12517c9..ef15ee94 100644
--- a/cpp/020call
+++ b/cpp/020call
@@ -13,7 +13,7 @@ size_t next_ingredient_to_process;
 :(replace{} "call(recipe_number r)")
 call(recipe_number r) :running_recipe(r), pc(0), next_ingredient_to_process(0) {}
 
-:(replace{} "End Primitive Recipe Implementations." then "default:")
+:(replace{} "default:" following "End Primitive Recipe Implementations.")
 default: {
   // not a primitive; try to look for a matching recipe
   if (Recipe.find(instructions[pc].operation) == Recipe.end()) {