min() and max() in kernel.h ?

From: Herbert Rosmanith (herp@wildsau.idv-edu.uni-linz.ac.at)
Date: Fri Aug 17 2001 - 14:13:20 EST


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

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



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:24 EST