summaryrefslogtreecommitdiffstats
path: root/ffi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-10-24 14:21:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-10-24 14:21:14 -0700
commit23ff8e0205eabea96a109efd249f82dd562cf74e (patch)
tree09ceab48c395b4fb4adc89337e5ac697700ac583 /ffi.h
parent84da351d88231cb480a25c816eff08d0669ac095 (diff)
downloadtxr-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffi.h b/ffi.h
index d788d9e8..37a42d65 100644
--- a/ffi.h
+++ b/ffi.h
@@ -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);