This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: closure api return value types problem


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]