summaryrefslogtreecommitdiffstats
path: root/match.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-06 17:58:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-06 17:58:06 -0700
commit16b390a2d811bb0dbe6f8d8bf1cf21cb397d3447 (patch)
treee8530efaca66c05d712f3238f9066fe4f31fd05f /match.h
parentdb161112abb1c684bf91b2c434e18b488c0aa2ca (diff)
downloadtxr-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 'match.h')
0 files changed, 0 insertions, 0 deletions