diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-07 09:09:03 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-07 09:09:03 -0700 |
commit | feea17487b17ca381b6d740ac50a76248f1d033c (patch) | |
tree | 03deaf4a659c7459c2600d3b916baa867c1ee4bc /buf.h | |
parent | b6b83892c085740529d0c38e9cf45ee1df42f97c (diff) | |
download | txr-feea17487b17ca381b6d740ac50a76248f1d033c.tar.gz txr-feea17487b17ca381b6d740ac50a76248f1d033c.tar.bz2 txr-feea17487b17ca381b6d740ac50a76248f1d033c.zip |
ffi: bugfix: all in calls must fall back on get.
* ffi.c (ffi_ptr_out_in, ffi_ptr_out_s_in): If the target type
has no in handler, fall back on its get. Here, it is without
regard for the copy flag, because a zero value of that flag
just indicates that the ptr-out itself is passed by-value.
The target object is never by value
(ffi_in): Add copy flag parameter, so the full interface
is exposed, like in ffi_out. Fall back on get, if there is
no in and the copy flag is true. Just return the original
object if the type has no in, and copy is false.
(ffi_init): Registration of ffi-in adjusted to four
parameters.
* ffi.h (ffi_in): Declaration updated.
Diffstat (limited to 'buf.h')
0 files changed, 0 insertions, 0 deletions