closure api return value types problem
Sergei Trofimovich
slyich@gmail.com
Wed Apr 7 18:42:00 GMT 2010
On Wed, 07 Apr 2010 08:48:17 +0100
Andrew Haley <aph@redhat.com> wrote:
> >> I think this is just because of the common (universal?) C ABI
> >> convention that integer typed return values of rank less than int are
> >> returned as a whole word, suitably sign- or zero-extended. It need
> >> not have been done that way.
> >
> > The thing is:
> > * it's _very_ unintuitive (and not only for me) as that closure callback
> > (with args and resp parameters) is meant to be convention agnostic
>
> Yes. I take your point.
How about changing it in libffi-4.x.y with slight API change to break
wrong assumptions?
> Andrew.
>
--
Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libffi-discuss/attachments/20100407/a86112c5/attachment.sig>
More information about the Libffi-discuss
mailing list