diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-10-24 14:21:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-10-24 14:21:14 -0700 |
commit | 23ff8e0205eabea96a109efd249f82dd562cf74e (patch) | |
tree | 09ceab48c395b4fb4adc89337e5ac697700ac583 /ffi.h | |
parent | 84da351d88231cb480a25c816eff08d0669ac095 (diff) | |
download | txr-23ff8e0205eabea96a109efd249f82dd562cf74e.tar.gz txr-23ff8e0205eabea96a109efd249f82dd562cf74e.tar.bz2 txr-23ff8e0205eabea96a109efd249f82dd562cf74e.zip |
ffi: implement in-semantics for carray, cptr.
* ffi.c (ff_cptr_in, ffi_carray_in): New static functions.
(ffi_type_compile): Wire in new functions for dynamically
compiled cptr and carray types.
(ffi_init_types): Also, wire in ffi_cptr_in function for
the non-parametrized cptr type.
(carray_set_ptr): New function.
* ffi.h (carray_set_ptr): Declared.
* txr.1: Documented.
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -104,6 +104,7 @@ val carray_type(val carray); val length_carray(val carray); val copy_carray(val carray); mem_t *carray_ptr(val carray, val type, val self); +void carray_set_ptr(val carray, val type, mem_t *ptr, val self); val carray_vec(val vec, val type, val null_term_p); val carray_list(val list, val type, val null_term_p); val carray_blank(val nelem, val type); |