Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Port from Win to OSX with Inline functions




Am 07.10.2006 um 01:46 schrieb David Leimbach:

Inline is a C99 keyword and still only a "hint" to the compiler.

To my knowledge, putting "inline" in a header file doesn't make it's
symbols static. And inline functions aren't allowed to also be static.

Is it a fact ?

You're probably better off grouping the inline functions into a .c
file and then #include'ng it wherever it's needed as well as making
the functions static.  (though I believe both inline and static is
illegal in C99).

Or just a belief ? Or is it merely a feeling ? :)

Circumstantial evidence shows that the contrary is probably true.

http://www.greenend.org.uk/rjk/2003/03/inline.html
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2003-October/ 029219.html
http://developer.apple.com/documentation/developertools/gcc-4.0.1/gcc/ Inline.html


Ciao
   Nat!
---------------------------------------------------------
I have a poetic license, and I am not afraid to invoke it.
-- DLR


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Port from Win to OSX with Inline functions (From: Chris Edgington <email@hidden>)
 >Re: Port from Win to OSX with Inline functions (From: "David Leimbach" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.