Re: correct definition of NULL

2011-07-02 Thread Philip Guenther
On Sat, Jul 2, 2011 at 3:33 AM, Dunceor wrote: ... > Is there a reason for that NULL is defined at so many places? Because the standards say so. If the code to do so grows complicated enough (it's close already, IMHO) then perhaps that definition should be moved to an internal header (say, <_nul

Re: correct definition of NULL

2011-07-02 Thread Dunceor
On Sat, Jul 2, 2011 at 11:16 AM, Jonathan Gray wrote: > As pointed out by Richard Guenther our definition > of NULL will be incorrect for c++ compilers that aren't > gcc (or pretend to be gcc like clang). > > Index: dirent.h > === > R

correct definition of NULL

2011-07-02 Thread Jonathan Gray
As pointed out by Richard Guenther our definition of NULL will be incorrect for c++ compilers that aren't gcc (or pretend to be gcc like clang). Index: dirent.h === RCS file: /cvs/src/include/dirent.h,v retrieving revision 1.21 diff -