diff options
| author | Mistivia <i@mistivia.com> | 2025-07-23 17:29:42 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-07-23 17:32:44 +0800 |
| commit | dec35ab80b9cc3b83b3a806835198b0a58cdc0cb (patch) | |
| tree | d1e489c945b5bf9bce1f26b512758cc741ffe880 /interp.c | |
| parent | cc8ea3f88c75216c7c03342a4a41bbc7d0b354f5 (diff) | |
add ext
Diffstat (limited to 'interp.c')
| -rw-r--r-- | interp.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -12,8 +12,6 @@ #include "parser.h" #include "prelude.h" -#include "vector.h" - #define BUFSIZE 1024 bool SExpRef_eq(SExpRef a, SExpRef b) { @@ -148,6 +146,7 @@ void Interp_init(Interp *self) { Interp_add_primitive(self, "assert-error", primitive_assert_error); Interp_add_primitive(self, "assert-exception", primitive_assert_exception); Interp_add_primitive(self, "load", primitive_load); + Interp_add_primitive(self, "loadext", primitive_loadext); Interp_add_primitive(self, "try", primitive_try); Interp_add_primitive(self, "unwind-protect", primitive_unwind_protect); @@ -260,9 +259,6 @@ void Interp_init(Interp *self) { Interp_add_userfunc(self, "_gcstat", builtin_gcstat); Interp_add_userfunc(self, "_alwaysgc", builtin_alwaysgc); - // extentions - bamboo_lisp_init_vector(self); - SExpRef ret = Interp_eval_string(self, bamboo_lisp_prelude); Interp *interp = self; if (VALTYPE(ret) == kErrSignal) { |
