|
| void | x_callable_bind (x_obj_t *p_base, x_char_t *name, x_fn_t fn) |
| |
| void | x_value_bind (x_obj_t *p_base, x_char_t *name, x_obj_t *p_val) |
| |
| void | x_callable_bind_table (x_obj_t *p_base, const x_callable_entry_t *table, int count) |
| |
| x_obj_t * | x_prims (x_obj_t *p_base) |
| |
| static x_obj_t * | x_prims_domain_pair (x_obj_t *p_base, x_obj_t *p_ns) |
| |
| static void | x_prims_file (x_obj_t *p_base, x_obj_t *p_ns, x_obj_t *p_entry) |
| |
| static void | x_prims_add (x_obj_t *p_base, x_char_t *ns, x_char_t *method, x_fn_t fn) |
| |
| static int | x_prims_name_kept (const x_char_t *name) |
| |
| static int | x_prims_ns_deregistered (const x_char_t *ns) |
| |
| void | x_prims_bind_table (x_obj_t *p_base, const x_prim_entry_t *table, int count) |
| |
| x_obj_t * | x_prim_register (x_obj_t *p_base, x_obj_t *p_args) |
| |
Primitive evaluation helpers, environment extension, and registration.
- Author
- Jon Ruttan (jonru.nosp@m.ttan.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)
- Copyright
- 2026 Jon Ruttan @license MIT No Attribution (MIT-0)
Register all built-in primitives into the environment.
Binds the #t and #f boolean singletons, caches them in the base object, then delegates to each primitive module's register function (core, quote, binding, closure, control, arith, pred, string, io, type, ffi, callcc).
- Parameters
-
| p_base | x_obj_t* – Base (execution context) |
| p_args | x_obj_t* – Unused |
- Returns
- x_obj_t* – p_base