struct by value copies
Thomas Heller
theller@ctypes.org
Tue Sep 2 18:23:00 GMT 2008
Timothy Wall schrieb:
> I'm wondering if the responsibility of making a copy of struct by
> value arguments lies with the caller of ffi_call or with libffi.
>
> I've been looking through different targets to see if this is done
> anywhere, and don't see copies made anywhere, so I would guess
> responsibility lies with the caller of ffi_call.
>
> Anyone know for sure?
Are you asking in the context of your win64 port? I do not know
the answer but I suspect that ffi_call makes the copy itself.
In my Python win64 libffi implementation there is still the bug that these
copies are not made (for structures that do not fit into a register)
although I have never seen this bug on other platforms.
I did not yet have the time to debug or fix this problem.
--
Thanks,
Thomas
More information about the Libffi-discuss
mailing list