Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Eli Zaretskii , djgpp-workers AT delorie DOT com, dj AT delorie DOT com Date: Mon, 30 Mar 1998 11:16:11 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: NULL redefined! :( References: <199803300226 DOT VAA00564 AT delorie DOT com> In-reply-to: Precedence: bulk Eli Zaretskii wrote: > On Sun, 29 Mar 1998, DJ Delorie wrote: > > Thus (to paraphrase) we should have: > > > > #undef NULL > > #define NULL 0 > > Can we agree to put the above inside all the DJGPP headers that define > NULL? I disagree, undefining the NULL definition is not a good idea, It breaks any mechanism used to get a better NULL check. The #ifdef is better from my point of view. Nobody will define NULL in a way that breaks libc (just because your program will fail) but somebody (currently the FSF) can define it to get a better syntax check and undefining it the effort is just destroyed, additionally the user can't avoid this destruction so easilly because some C++ headers includes standard C headers (not the reverse). > (Btw, wouldn't it be better to define a single header, say > , which would then be included by all the rest?) Yes that's needed. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013