delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/11/28/02:34:39

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Date: Wed, 28 Nov 2001 08:16:27 +0100
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-apps AT cygwin DOT com
Subject: Re: 0 vs NULL - a note
Message-ID: <20011128081627.W14975@cygbert.vinschen.de>
Reply-To: cygwin-apps AT cygwin DOT com
Mail-Followup-To: cygwin-apps AT cygwin DOT com
References: <20011127230925 DOT GA5830 AT redhat DOT com> <000001c1779c$e1fe2fa0$2101a8c0 AT NOMAD> <20011127235226 DOT GA6537 AT redhat DOT com> <1006906033 DOT 2048 DOT 23 DOT camel AT lifelesswks> <20011128002122 DOT GA6919 AT redhat DOT com> <1006907495 DOT 2048 DOT 25 DOT camel AT lifelesswks> <20011128005414 DOT GA7118 AT redhat DOT com> <1006910727 DOT 637 DOT 0 DOT camel AT lifelesswks> <1006912722 DOT 712 DOT 2 DOT camel AT lifelesswks>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <1006912722.712.2.camel@lifelesswks>; from robert.collins@itdomain.com.au on Wed, Nov 28, 2001 at 12:58:41PM +1100

On Wed, Nov 28, 2001 at 12:58:41PM +1100, Robert Collins wrote:
> This is simply a FYI for those interested.
> 
> http://www.multimania.com/pierret/cpp212.htm
> may precende the standard ratification as it still tests for new
> returning 0. It makes an excellent point about NULL vs 0 in assignments.
> 
> Anyway, for clarity: Both 0 and NULL are acceptable in setup.exe. 

And another note:

	if (ptr)

and

	if (!ptr)

avoid all confusion about 0 vs. NULL.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019