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 04/07/2010 02:44 PM, Sergei Trofimovich wrote:
> 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?
>   

I'm open to API changes in 4.x if they make sense.

I'll make a wiki page later today on which people can document proposals.

AG



>   
>> Andrew.
>>
>>     
>   


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