• 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: CFBundleGetFunctionPointerForName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFBundleGetFunctionPointerForName


  • Subject: Re: CFBundleGetFunctionPointerForName
  • From: "Sherm Pendley" <email@hidden>
  • Date: Thu, 13 Mar 2008 14:53:21 -0400

On Thu, Mar 13, 2008 at 2:32 PM, Steve Checkoway <email@hidden> wrote:

On Mar 13, 2008, at 9:09 AM, Sherm Pendley wrote:

> In my experience, CFBundleGetFunctionPointerForName wants symbols to
> be
> prefixed with an underscore - that is, _model_call. They're stored
> that way
> in the binary (it's a C thing) and the function doesn't appear to
> add it for
> you before searching.


I'm pretty sure it is not a C thing and that nothing is mentioned in
the standard.

From Apple's own docs:

"The name of a symbol representing a function that conforms to standard C calling conventions is the name of the function with an underscore prefix. Thus, the name of the symbol representing the function main would be _main."

    <http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/executing_files.html>

I'm pretty sure it's just Mac thing.

It's not. I learned of this long before I switched to using a Mac.

sherm--

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >CFBundleGetFunctionPointerForName (From: Nava Carmon <email@hidden>)
 >Re: CFBundleGetFunctionPointerForName (From: "Sherm Pendley" <email@hidden>)
 >Re: CFBundleGetFunctionPointerForName (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: Xcode Editor's Regex now uses PCRE instead of ICU?
  • Next by Date: Re: CFBundleGetFunctionPointerForName
  • Previous by thread: Re: CFBundleGetFunctionPointerForName
  • Next by thread: re: CFBundleGetFunctionPointerForName
  • Index(es):
    • Date
    • Thread