diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-07 11:17:58 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-07 11:17:58 -0700 |
commit | 8a7aaea1c65efa10b23a70513b33707e208ca944 (patch) | |
tree | 9591e6755f3234a2d4e34a21ea477bcebf0392ae /buf.h | |
parent | feea17487b17ca381b6d740ac50a76248f1d033c (diff) | |
download | txr-8a7aaea1c65efa10b23a70513b33707e208ca944.tar.gz txr-8a7aaea1c65efa10b23a70513b33707e208ca944.tar.bz2 txr-8a7aaea1c65efa10b23a70513b33707e208ca944.zip |
ffi: semantics: ptr-in should recurse on in.
* ffi.c (ffi_ptr_in_in): Don't just free the buffer for
the pointer itself, but call the in handler of the target
type if it has one. Pass a false copy flag to it, so that
that a ptr-in pass semantically resembles a by-value pass.
(ffi_ptr_in_d_in): New static function.
(ffi_type_compile): Give ptr-in-d type the ffi_ptr_in_d_in
function.
Diffstat (limited to 'buf.h')
0 files changed, 0 insertions, 0 deletions