** Reply to message from Peter Samuelson <[EMAIL PROTECTED]> on Mon, 18 Dec
2000 09:03:00 -0600 (CST)
> Not a compiler bug, a source bug of assuming a C header file can be
> included by a C++ program. The right solution, as always, is to make a
> copy of the header (assuming you really do need it) and edit the copy
> as necessary.
That just creates more maintenance problems. What if the kernel header file
changes? Then he'll have to change his copy as well. He'll forever need to
check changes in that kernel header file, or risk having an obscure bug that's
otherwise hard to track.
Yes, it's perfectly valid C, but so what? That doesn't mean that it's a good
idea. It does no harm to make a minor change to the header file to allow a C++
compiler to digest it. I consider it to be a "professional courtesy" of a C
programmer for a C++ programmer. All the C programmer needs to do is
acknowledge that someone might want to use a C++ compiler on the code, and just
make a few minor changes that have no negative affect at all.
--
Timur Tabi - [EMAIL PROTECTED]
Interactive Silicon - http://www.interactivesi.com
When replying to a mailing-list message, please direct the reply to the mailing list
only. Don't send another copy to me.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/