Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Michal Schmidt
Rob Prowel wrote: [1.] One line summary of the problem: 2.4 and 2.6 kernel headers use c++ reserved word "new" as identifier in function prototypes. Yes, the kernel is written in C, not C++. using the identifier "new" in kernel headers that are visible to applications programs is a bad

Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Schneelocke
On 06/07/05, Rob Prowel <[EMAIL PROTECTED]> wrote: > 2.4 and 2.6 kernel headers use c++ reserved word "new" > as identifier in function prototypes. > [...] > While not an error, per se, it is kind of sloppy and > it is amazing that it hasn't shown up before now. > using the identifier "new" in

Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Richard B. Johnson
On Wed, 6 Jul 2005, Alexey Dobriyan wrote: On Wednesday 06 July 2005 13:26, Rob Prowel wrote: When kernel headers are included in compilation of c++ programs the compile fails because some header files use "new" in a way that is illegal for c++. This shows up when compiling mySQL under linux

Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Jakob Oestergaard
On Wed, Jul 06, 2005 at 02:26:57AM -0700, Rob Prowel wrote: > [1.] One line summary of the problem: > > 2.4 and 2.6 kernel headers use c++ reserved word "new" > as identifier in function prototypes. Correction: [1.] One line summary of problem: Userspace application is making use of

Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread David Woodhouse
On Wed, 2005-07-06 at 02:26 -0700, Rob Prowel wrote: > While not an error, per se, it is kind of sloppy and > it is amazing that it hasn't shown up before now. > using the identifier "new" in kernel headers that are > visible to applications programs is a bad idea. It _is_ an error, on mysql's

Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Alexey Dobriyan
On Wednesday 06 July 2005 13:26, Rob Prowel wrote: > When kernel headers are included in compilation of c++ > programs the compile fails because some header files > use "new" in a way that is illegal for c++. This > shows up when compiling mySQL under linux 2.6. It > uses

Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Jesper Juhl
On 7/6/05, Rob Prowel <[EMAIL PROTECTED]> wrote: > [1.] One line summary of the problem: > > 2.4 and 2.6 kernel headers use c++ reserved word "new" > as identifier in function prototypes. > "new" is not a reserved word in C. the kernel is written in C. > [2.] Full description of the

Re: PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Jurriaan on adsl-gate
On Wed, Jul 06, 2005 at 02:26:57AM -0700, Rob Prowel wrote: > [1.] One line summary of the problem: > > 2.4 and 2.6 kernel headers use c++ reserved word "new" > as identifier in function prototypes. > This is a FAQ. 1) kernel headers are for kernel use. 2) the kernel is written in C, not

PROBLEM: please remove reserved word "new" from kernel headers

2005-07-06 Thread Rob Prowel
[1.] One line summary of the problem: 2.4 and 2.6 kernel headers use c++ reserved word "new" as identifier in function prototypes. [2.] Full description of the problem/report: When kernel headers are included in compilation of c++ programs the compile fails because some header files use

PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Rob Prowel
[1.] One line summary of the problem: 2.4 and 2.6 kernel headers use c++ reserved word new as identifier in function prototypes. [2.] Full description of the problem/report: When kernel headers are included in compilation of c++ programs the compile fails because some header files use new

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Jurriaan on adsl-gate
On Wed, Jul 06, 2005 at 02:26:57AM -0700, Rob Prowel wrote: [1.] One line summary of the problem: 2.4 and 2.6 kernel headers use c++ reserved word new as identifier in function prototypes. This is a FAQ. 1) kernel headers are for kernel use. 2) the kernel is written in C, not C++. 3)

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Jesper Juhl
On 7/6/05, Rob Prowel [EMAIL PROTECTED] wrote: [1.] One line summary of the problem: 2.4 and 2.6 kernel headers use c++ reserved word new as identifier in function prototypes. new is not a reserved word in C. the kernel is written in C. [2.] Full description of the problem/report:

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Alexey Dobriyan
On Wednesday 06 July 2005 13:26, Rob Prowel wrote: When kernel headers are included in compilation of c++ programs the compile fails because some header files use new in a way that is illegal for c++. This shows up when compiling mySQL under linux 2.6. It uses

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread David Woodhouse
On Wed, 2005-07-06 at 02:26 -0700, Rob Prowel wrote: While not an error, per se, it is kind of sloppy and it is amazing that it hasn't shown up before now. using the identifier new in kernel headers that are visible to applications programs is a bad idea. It _is_ an error, on mysql's part.

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Jakob Oestergaard
On Wed, Jul 06, 2005 at 02:26:57AM -0700, Rob Prowel wrote: [1.] One line summary of the problem: 2.4 and 2.6 kernel headers use c++ reserved word new as identifier in function prototypes. Correction: [1.] One line summary of problem: Userspace application is making use of private

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Richard B. Johnson
On Wed, 6 Jul 2005, Alexey Dobriyan wrote: On Wednesday 06 July 2005 13:26, Rob Prowel wrote: When kernel headers are included in compilation of c++ programs the compile fails because some header files use new in a way that is illegal for c++. This shows up when compiling mySQL under linux

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Schneelocke
On 06/07/05, Rob Prowel [EMAIL PROTECTED] wrote: 2.4 and 2.6 kernel headers use c++ reserved word new as identifier in function prototypes. [...] While not an error, per se, it is kind of sloppy and it is amazing that it hasn't shown up before now. using the identifier new in kernel headers

Re: PROBLEM: please remove reserved word new from kernel headers

2005-07-06 Thread Michal Schmidt
Rob Prowel wrote: [1.] One line summary of the problem: 2.4 and 2.6 kernel headers use c++ reserved word new as identifier in function prototypes. Yes, the kernel is written in C, not C++. using the identifier new in kernel headers that are visible to applications programs is a bad