diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-06 17:58:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-06 17:58:06 -0700 |
commit | 16b390a2d811bb0dbe6f8d8bf1cf21cb397d3447 (patch) | |
tree | e8530efaca66c05d712f3238f9066fe4f31fd05f /lib.h | |
parent | db161112abb1c684bf91b2c434e18b488c0aa2ca (diff) | |
download | txr-16b390a2d811bb0dbe6f8d8bf1cf21cb397d3447.tar.gz txr-16b390a2d811bb0dbe6f8d8bf1cf21cb397d3447.tar.bz2 txr-16b390a2d811bb0dbe6f8d8bf1cf21cb397d3447.zip |
ffi: allow conversion of carray objects under cptr.
* ffi.c (ffi_cptr_put): If the object is not a cptr, try it as
a carray. This requires the tft to have an eltype, requiring
a change in ffi_type_compile.
(ffi_type_compile): When compiling a parametrized cptr object,
we now look up the type symbol as a FFI type, and store the
result as the tft->eltype. If the symbol is not an FFI type,
then this lookup returns nil. If the eltype is non-nil, then
there is the possibility it can match the element type of a
carray.
* txr.1: Documented.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions