Re: Definition of NULL

2009-05-05 Thread Andriy Gapon
on 02/05/2009 19:35 Erik Trulsson said the following: > Is the use of C++ inside the kernel really supported? I don't think so, > but I could be wrong. First question is what did you mean by "supported"? :-) Fortunately, it almost does not need to be supported, it can simply be used (with some k

Re: Definition of NULL

2009-05-04 Thread Joerg Sonnenberger
On Mon, May 04, 2009 at 10:46:02AM -0400, John Baldwin wrote: > I think this would be ok to let C++ work in the kernel. "Embedded" C++ (no > exceptions and no dynamic_cast<>) should work fine in theory. I would not > change the value of NULL that userland sees though as I think that may be too >

Re: Definition of NULL

2009-05-04 Thread John Baldwin
On Saturday 02 May 2009 11:59:03 am Andrew Brampton wrote: > I'm writing a C++ Kernel Module, and one thing that has been bugging > me is the kernel's definition of NULL. > > sys/sys/_null.h (in CURRENT): > > #if defined(_KERNEL) || !defined(__cplusplus) > #define NULL((void *)0) > #else > #i

Re: Definition of NULL

2009-05-02 Thread Andrew Brampton
2009/5/2 Erik Trulsson : > On Sat, May 02, 2009 at 04:59:03PM +0100, Andrew Brampton wrote: >> I'm writing a C++ Kernel Module, and one thing that has been bugging >> me is the kernel's definition of NULL. > > Is the use of C++ inside the kernel really supported?  I don't think so, > but I could be

Re: Definition of NULL

2009-05-02 Thread Erik Trulsson
On Sat, May 02, 2009 at 04:59:03PM +0100, Andrew Brampton wrote: > I'm writing a C++ Kernel Module, and one thing that has been bugging > me is the kernel's definition of NULL. Is the use of C++ inside the kernel really supported? I don't think so, but I could be wrong. > > sys/sys/_null.h (in