diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-10 06:49:21 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-10 06:49:21 -0700 |
commit | 2e0385880600fb0edee85a8960ed3160086a42f1 (patch) | |
tree | e654d3b55dd993de235a8720cb7a88bff1601c12 /debug.c | |
parent | 471149c262613e4b69fc14b9599fe541106084e4 (diff) | |
download | txr-2e0385880600fb0edee85a8960ed3160086a42f1.tar.gz txr-2e0385880600fb0edee85a8960ed3160086a42f1.tar.bz2 txr-2e0385880600fb0edee85a8960ed3160086a42f1.zip |
ffi: do arg in semantics /after/ getting return val.
What this allows is for situations when a foreign function
returns the pointer that it has been passed. If that pointer
is temporary storage allocated by FFI, then it is no longer
valid after performing the in pass on the args. Therefore, we
should decode the return value first, while the returned
pointer is valid.
* ffi.c (ffi_call_wrap): Move the return value get before
the argument post-processing in pass.
Diffstat (limited to 'debug.c')
0 files changed, 0 insertions, 0 deletions