• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Returning values from objc_msgSend etc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning values from objc_msgSend etc


  • Subject: Re: Returning values from objc_msgSend etc
  • From: "Sherm Pendley" <email@hidden>
  • Date: Mon, 31 Mar 2008 17:19:34 -0400

On Mon, Mar 31, 2008 at 1:03 PM, Greg Parker <email@hidden> wrote:

> On Mar 31, 2008, at 8:34 AM, Sherm Pendley wrote:
> > On Sat, Mar 1, 2008 at 9:00 AM, Greg Parker <email@hidden> wrote:
> >>
> >> I don't think libffi does any type promotion.
> >
>
> ffi_call(3) says:
> "rvalue must point to storage that is sizeof(long) or larger. For
> smaller return value sizes, the ffi_arg or ffi_sarg integral type must
> be used to hold the return value."
> ...
> ...which means this isn't allowed. In fact, it's probably smashing
> memory on your stack.


I guess I may have misunderstood the term then. That sounds like type
promotion of the return value to me. :-)

Sorry about the noise.

sherm--
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Returning values from objc_msgSend etc (From: "Sherm Pendley" <email@hidden>)
 >Re: Returning values from objc_msgSend etc (From: Greg Parker <email@hidden>)
 >Re: Returning values from objc_msgSend etc (From: "Sherm Pendley" <email@hidden>)
 >Re: Returning values from objc_msgSend etc (From: Greg Parker <email@hidden>)

  • Prev by Date: remote debugging between ppc & intel
  • Next by Date: Re: libpq prepared statement
  • Previous by thread: Re: Returning values from objc_msgSend etc
  • Next by thread: Re: programmatically placing GUIs
  • Index(es):
    • Date
    • Thread