Date: Wed, 8 Mar 2000 15:53:46 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Hans-Bernhard Broeker cc: djgpp-workers AT delorie DOT com, DJ Delorie Subject: Re: iso646.h and some questions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 8 Mar 2000, Hans-Bernhard Broeker wrote: > Then, all the > > #undef NULL > #define NULL 0 > > sequences in the C standard headers could be replaced by > > #include > #ifndef NULL > #define NULL _DJ_NULL > #endif I like this better. But isn't it cleaner to have all the #ifndef stuff inside sys/djnull.h, instead of exposing it to the public headers? DJ, do you agree to this solution? > This should work for both C and C++ compiles. Or doesn't the C++ __null > evaluate to a C-usable NULL pointer constant, if passed to an extern "C" > function? I never took the time to look at the C++ definition and reflect on its fine points. Anyone?