17 May
2007
17 May
'07
5:01 p.m.
Hi, 2007/3/2, Rich Felker <dalias@aerifal.cx>:
On Fri, Mar 02, 2007 at 10:09:15AM +0800, Zuxy Meng wrote:
Hi,
I guess functions in header files should be in inline?
No particular reason it should or shouldn't be inline. In fact the inline keyword is supposed to be something of a no-op - the compiler should pick to inline or not based on which is better. I have no major objection to this patch but it's not really needed either. Not inlining might save a small amount of space and should not affect performance.
If a static function is defined in a header file that will be included multiple times, will ld collapse them together in the final executable? -- Zuxy Beauty is truth, While truth is beauty. PGP KeyID: E8555ED6