From c3779a7849804756c22912f8cfb6178863d82fb9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 16 May 2015 13:49:35 -0700 Subject: 1385 --- 011load.cc | 1 + 042new.cc | 3 ++- 048continuation.cc | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/011load.cc b/011load.cc index 3a23d026..9644eda3 100644 --- a/011load.cc +++ b/011load.cc @@ -34,6 +34,7 @@ vector 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 Continuation; index_t Next_continuation_id = 0; -- cgit 1.4.1-2-gfad0