public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* min() and max() in kernel.h ?
@ 2001-08-17 19:13 Herbert Rosmanith
  2001-08-17 19:21 ` Michael H. Warfield
  2001-08-17 21:52 ` Ingo Oeser
  0 siblings, 2 replies; 5+ messages in thread
From: Herbert Rosmanith @ 2001-08-17 19:13 UTC (permalink / raw)
  To: linux-kernel


hi,

just now I tried to compile some module and noticed that it doesnt
compile anymore because "macro min used with only two arguments".
I had some "#define min(a,b) (a<b?a:b)" myself.

I then found min() being defined in <linux/kernel.h> with an additional
type argument and some superfluos (imo) assignment code. Erm. What's going
next, drawing elipses in kernel?

I'm also missing some comment who added min/max to kernel.h, at least
I want to know who I am going to flame :->

/herp


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-17 21:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-17 19:13 min() and max() in kernel.h ? Herbert Rosmanith
2001-08-17 19:21 ` Michael H. Warfield
2001-08-17 19:26   ` Jeff Golds
2001-08-17 19:29   ` Hua Zhong
2001-08-17 21:52 ` Ingo Oeser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox