Date: Thu, 20 Jul 2000 22:42:29 +0200 Message-Id: <200007202042.WAA00946@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: dj AT delorie DOT com CC: djgpp-workers AT delorie DOT com, gcc AT gcc DOT gnu DOT org In-reply-to: <200007201437.KAA29757@envy.delorie.com> (message from DJ Delorie on Thu, 20 Jul 2000 10:37:16 -0400) Subject: Re: GCC headers and DJGPP port References: <200007180918 DOT FAA06988 AT indy DOT delorie DOT com> <200007181913 DOT VAA01170 AT loewis DOT home DOT cs DOT tu-berlin DOT de> <200007191826 DOT OAA08693 AT indy DOT delorie DOT com> <200007200729 DOT JAA01060 AT loewis DOT home DOT cs DOT tu-berlin DOT de> <200007201024 DOT GAA09536 AT indy DOT delorie DOT com> <200007201205 DOT OAA15361 AT loewis DOT home DOT cs DOT tu-berlin DOT de> <200007201437 DOT KAA29757 AT envy DOT delorie DOT com> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > I don't know what your copy of stdio.h looks like, however, it > > should certainly test whether NULL is defined before defining it. > > It doesn't. It shouldn't have to. ANSI says that stdio.h provides > NULL. According to ISO C99, NULL is provided by the following headers locale.h (7.11) stddef.h (7.17) stdio.h (7.19) stdlib.h (7.20) string.h (7.21) time.h (7.23) wchar.h (7.24) so it is not all that clear that it is provided by stdio.h exclusively. > I have a philosophical problem with anyone saying "it should > certainly test it" because it means that, at the whim of the gcc team, > we'd need to add yet another test to our standard headers because yet > another symbol was absconded by the gcc headers. Please tell me how you implement the above requirement without testing whether NULL has been defined? Regards, Martin