about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-16 13:49:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-16 13:49:35 -0700
commitc3779a7849804756c22912f8cfb6178863d82fb9 (patch)
treee146745ed2a928c12f1e24d6042fd900164d1e96
parentdd43949ede6d9e0b0417c36f36c311bb6da6fa57 (diff)
downloadmu-c3779a7849804756c22912f8cfb6178863d82fb9.tar.gz
1385
-rw-r--r--011load.cc1
-rw-r--r--042new.cc3
-rw-r--r--048continuation.cc1
3 files changed, 4 insertions, 1 deletions
diff --git a/011load.cc b/011load.cc
index 3a23d026..9644eda3 100644
--- a/011load.cc
+++ b/011load.cc
@@ -34,6 +34,7 @@ vector<recipe_number> load(istream& in) {
         raise << "redefining recipe " << Recipe[Recipe_number[recipe_name]].name << "\n";
         Recipe.erase(Recipe_number[recipe_name]);
       }
+      // todo: save user-defined recipes to mu's memory
       Recipe[Recipe_number[recipe_name]] = slurp_recipe(in);
       Recipe[Recipe_number[recipe_name]].name = recipe_name;
       // track added recipes because we may need to undo them in tests; see below
diff --git a/042new.cc b/042new.cc
index 68ae1949..8d90c3e7 100644
--- a/042new.cc
+++ b/042new.cc
@@ -43,6 +43,7 @@ if (inst.operation == Recipe_number["new"]) {
 }
 
 //:: Now implement the primitive recipe.
+//: todo: build 'new' in mu itself
 
 :(before "End Primitive Recipe Declarations")
 NEW,
@@ -68,7 +69,7 @@ case NEW: {
       size = size_of(type);
     }
   }
-  // compute the resulting location
+  // compute the region of memory to return
   // really crappy at the moment
   ensure_space(size);
   const index_t result = Current_routine->alloc;
diff --git a/048continuation.cc b/048continuation.cc
index c5697aae..80c9293d 100644
--- a/048continuation.cc
+++ b/048continuation.cc
@@ -5,6 +5,7 @@
 //:   'current-continuation', which returns a continuation, and
 //:   'continue-from', which takes a continuation to switch to.
 
+//: todo: implement continuations in mu's memory
 :(before "End Globals")
 map<index_t, call_stack> Continuation;
 index_t Next_continuation_id = 0;