Re: [PATCH] C++ breaks on linux/ioport.h

From: Alexander Viro (viro@math.psu.edu)
Date: Thu Apr 27 2000 - 13:19:26 EST


On Thu, 27 Apr 2000, Paul Barton-Davis wrote:

> Thats not the issue here. The issue is using the keyword "new" for a
> declaration's argument. It would be nice if this was avoided, just
> like "delete", "catch", "throw" and the rest of the C++ keyword superset.
>
> If the relevant declaration is inside __KERNEL__ and so are some
> constants that user-space needs, the programmer is out of luck if
> these keywords are used in the declarations.

Good. Because everything under __KERNEL__ belongs to the kernel and is
subject to change without notice. If you really need something from that
area - you've either
        a) found a bug or
        b) missed a portable way to achieve your goal.
Userland should never, ever define __KERNEL__, unless it's consent with
breakage upon the upgrade from 2.2.18-pre9 to 2.2.18-pre10-pre1.

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



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:13 EST