Re: Port from Win to OSX with Inline functions
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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. 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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 This email sent to site_archiver@lists.apple.com
participants (1)
-
Nat!