Mail Archives: djgpp-workers/2000/03/08/11:14:35
Hans-Bernhard Broeker wrote:
> > >
> > > #undef NULL
> > > #define NULL 0
> >
> > Won't this make trouble in C++ programs?
>
> Why should it?
As Eli told you we already had a thread about it. The GNU library uses _null,
that's an internal value defined by g++. The purpose? better NULL checking.
That's equivalent to 0 and using 0 all works, but the best thing is to let
stdc++ define it. The problem is that it makes collisions like: standard headers
must define it no matters if it was defined, etc.
> This is the exact definition found in current DJGPP
> headers, already. So if there were trouble to expected from that, C++
> programmers would have told us.
It just makes the NULL checkings a weaker (as it ever was) so nobody will note
it. Unless s/he used it in Linux.
SET
--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013
- Raw text -