|
| static mvalue | ml_make_fix (int64_t x) |
| |
| static int64_t | ml_fix_int (mvalue v) |
| |
| static int | ml_is_obj (mvalue v) |
| |
| static int | ml_is_fix (mvalue v) |
| |
| static int | ml_is_imm (mvalue v) |
| |
| static int | ml_is_sym (mvalue v) |
| |
| static int | ml_is_nil (mvalue v) |
| |
| static int | ml_is_bool (mvalue v) |
| |
| static int | ml_truthy (mvalue v) |
| |
| static mvalue | ml_make_bool (int b) |
| |
| static mvalue | ml_make_sym (uint32_t idx) |
| |
| static uint32_t | ml_sym_index (mvalue v) |
| |
| static mobj * | ml_as_obj (mvalue v) |
| |
| static mpair * | ml_as_pair (mvalue v) |
| |
| static mstring * | ml_as_string (mvalue v) |
| |
| static mclosure * | ml_as_closure (mvalue v) |
| |
| static mprim * | ml_as_prim (mvalue v) |
| |
| static menv * | ml_as_env (mvalue v) |
| |
| static int | ml_is_obj_type (mvalue v, mobj_type t) |
| |
| static int | ml_is_pair (mvalue v) |
| |
| static int | ml_is_string (mvalue v) |
| |
| static int | ml_is_closure (mvalue v) |
| |
| static int | ml_is_prim (mvalue v) |
| |
| static int | ml_is_env (mvalue v) |
| |
| static int | ml_is_procedure (mvalue v) |
| |
| void * | ml_raw_alloc (ml_state *s, size_t size) |
| |
| void | ml_raw_free (ml_state *s, void *p) |
| |
| microlisp_status | ml_gc_alloc_pair (ml_state *s, mvalue car, mvalue cdr, mvalue *out) |
| |
| microlisp_status | ml_gc_alloc_string (ml_state *s, const uint8_t *bytes, size_t len, mvalue *out) |
| |
| microlisp_status | ml_gc_alloc_closure (ml_state *s, mvalue env, mvalue params, mvalue body, mvalue *out) |
| |
| microlisp_status | ml_gc_alloc_primitive (ml_state *s, const char *name, ml_prim_fn fn, uint32_t arity_min, uint32_t arity_max, mvalue *out) |
| |
| microlisp_status | ml_gc_alloc_env (ml_state *s, mvalue parent, mvalue *out) |
| |
| microlisp_status | ml_gc_protect (ml_state *s, mvalue v) |
| |
| void | ml_gc_unprotect (ml_state *s, size_t n) |
| |
| static size_t | ml_gc_savepoint (const ml_state *s) |
| |
| void | ml_gc_restore (ml_state *s, size_t saved) |
| |
| void | ml_gc_collect (ml_state *s) |
| |
| void | ml_gc_free_all (ml_state *s) |
| |
| microlisp_status | ml_sym_intern (ml_state *s, const char *name, size_t len, mvalue *out) |
| |
| const char * | ml_sym_name (const ml_state *s, mvalue sym, size_t *out_len) |
| |
| microlisp_status | ml_env_define (ml_state *s, mvalue env, mvalue name, mvalue value) |
| |
| microlisp_status | ml_env_set (ml_state *s, mvalue env, mvalue name, mvalue value) |
| |
| microlisp_status | ml_env_lookup (const ml_state *s, mvalue env, mvalue name, mvalue *out) |
| |
| microlisp_status | ml_read (ml_state *s, ml_reader *r, mvalue *out) |
| |
| microlisp_status | ml_print (ml_state *s, mvalue v, int write_style, ml_out_fn out, void *user) |
| |
| microlisp_status | ml_print_to_alloc (ml_state *s, mvalue v, int write_style, char **out_bytes, size_t *out_len) |
| |
| microlisp_status | ml_eval (ml_state *s, mvalue form, mvalue env, mvalue *out) |
| |
| microlisp_status | ml_primitives_install (ml_state *s, mvalue env) |
| |
| int | ml_value_eq (mvalue a, mvalue b) |
| |
| int | ml_value_eqv (mvalue a, mvalue b) |
| |
| microlisp_status | ml_value_equal (ml_state *s, mvalue a, mvalue b, int *out_equal) |
| |
| void | ml_set_error (ml_state *s, size_t line, size_t column, const char *fmt,...) MICROLISP_PRINTF(4 |
| |
| void void | ml_clear_error (ml_state *s) |
| |