diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-22 06:56:03 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-22 06:56:03 -0700 |
commit | 4c1341f2d2be88f36e5799aac9275c88233e1abe (patch) | |
tree | c63ef068a2e182d54c18b40feda209b589ce841b /socket.c | |
parent | 54adf777ed9e1ce358848b4477a69dd59b5f0753 (diff) | |
download | txr-4c1341f2d2be88f36e5799aac9275c88233e1abe.tar.gz txr-4c1341f2d2be88f36e5799aac9275c88233e1abe.tar.bz2 txr-4c1341f2d2be88f36e5799aac9275c88233e1abe.zip |
ffi: bugfix: flexible struct get not working right.
The get operation must use the flexible array's in virtual
function, because incomplete arrays have a no-op get function.
* ffi.c (ffi_flex_struct_in): return the value of the slot.
(ffi_struct_get): When processing the terminating slot of a
flexible struct, we invoke its in-semantics, using the updated
slot value as the object.
Diffstat (limited to 'socket.c')
0 files changed, 0 insertions, 0 deletions