xo-interpreter2 stack: use RuntimeContext to streamline setup
This commit is contained in:
parent
68c2d3211f
commit
406bb5d742
4 changed files with 19 additions and 11 deletions
|
|
@ -60,8 +60,9 @@ namespace xo {
|
|||
* Allocates primitives using memory from mm, delivering them
|
||||
* to InstallSink sink.
|
||||
**/
|
||||
using InstallSource = std::function<bool (obj<AAllocator> mm,
|
||||
StringTable * stbl,
|
||||
using InstallSource = std::function<bool (obj<ARuntimeContext> rcx,
|
||||
//obj<AAllocator> mm,
|
||||
//StringTable * stbl,
|
||||
InstallSink sink,
|
||||
InstallFlags flags)>;
|
||||
|
||||
|
|
@ -76,8 +77,9 @@ namespace xo {
|
|||
* with global strings in @p stbl.
|
||||
* delivering each primitive to @p sink.
|
||||
**/
|
||||
bool install_primitives(obj<AAllocator> mm,
|
||||
StringTable * stbl,
|
||||
bool install_primitives(obj<ARuntimeContext> rcx,
|
||||
//obj<AAllocator> mm,
|
||||
//StringTable * stbl,
|
||||
InstallSink sink,
|
||||
InstallFlags flags);
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@
|
|||
namespace xo {
|
||||
namespace scm {
|
||||
/** Register primitive-factories **/
|
||||
bool procedure2_register_primitives(obj<xo::mm::AAllocator> gc,
|
||||
StringTable * stbl,
|
||||
bool procedure2_register_primitives(obj<ARuntimeContext> rcx,
|
||||
//obj<xo::mm::AAllocator> gc,
|
||||
//StringTable * stbl,
|
||||
InstallSink sink,
|
||||
InstallFlags flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue