delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
Date: | Thu, 27 Nov 2003 19:36:35 +0200 |
From: | "Eli Zaretskii" <eliz AT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | djgpp-workers AT delorie DOT com |
Message-Id: | <1190-Thu27Nov2003193634+0200-eliz@elta.co.il> |
X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
In-reply-to: | <200311270758.IAA18261@lws256.emw.erisoft.se> (message from |
Martin Stromberg on Thu, 27 Nov 2003 08:58:50 +0100 (MET)) | |
Subject: | Re: C99 and assert |
References: | <200311270758 DOT IAA18261 AT lws256 DOT emw DOT erisoft DOT se> |
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 |
> From: Martin Stromberg <Martin DOT Stromberg AT epl DOT ericsson DOT se> > Date: Thu, 27 Nov 2003 08:58:50 +0100 (MET) > > > > > > (char *)0 > > > > Yes, that's a good idea. > > Presumably this is some C++ thing, because in C NULL == 0. Yes, but without the definition of NULL anywhere in sight, you cannot use NULL, right? And if you use just 0, under the paranoiac set of GCC switches, the compiler could complain about incompatible argument, right? An explicit cast solves both of these problems.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |