Re: Linux-2.6.13-rc7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Henderson wrote:
> Because I use "extern inline" in the proper way.  That is, I have both
> inline and out-of-line versions of some routines.

Is there any reason not to just make the out-of-line version explicit?
i.e.:

	/* in some .h file: */
	static /*(always!)*/inline int my_func(void)
	{
		return FOO;
	}
	extern int OOL_my_func(void);

	/* in some .c file: */
	int OOL_my_func(void)
	{
		return my_func();
	}

It's a little ugly but there really aren't that many cases of this, right?
Or is this just the principal of the thing? :-)

-Mitch
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux