Re: [PATCH] sal cleanup

Matthew Wilcox
2004-03-01T16:03:03Z

On Fri, Feb 27, 2004 at 03:02:06PM -0800, David Mosberger wrote:
> >>>>> On Fri, 27 Feb 2004 22:42:15 +0000, Matthew Wilcox <willy@debian.org> said:
>
> Matthew> I actually can't find a name for the ?: operator in the C
> Matthew> FAQ.
>
> conditional expression?

I remembered I had a copy of the C99 spec ... 6.5.15 calls it the
"conditional operator". I also found a document calling it the "ternary
operator".

> I'd really prefer sal_revision() combined with a SAL_VERSION() macro.
> I can just look at that and intuitively understand what it's doing
> (especially given the symmetry with the LINUX_VERSION macros), whereas
> with the sal_version_check() function, I have to go look at it's
> definition.

Okey dokey, done. I'll send it as a separate message to keep the
?:??! discussion out of the changelog ;-)