xo-interpreter2 stack: use RuntimeContext to streamline setup

This commit is contained in:
Roland Conybeare 2026-03-16 14:09:03 -05:00
commit 406bb5d742
4 changed files with 19 additions and 11 deletions

View file

@ -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);

View file

@ -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);
}