Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2002 00:36:28 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        archie@dellroad.org
Cc:        freebsd-arch@FreeBSD.ORG
Subject:   Re: NULL
Message-ID:  <20020821.003628.52042275.imp@bsdimp.com>
In-Reply-To: <200208210323.g7L3NTR04362@arch20m.dellroad.org>
References:  <20020821114425.Q26007-100000@gamplex.bde.org> <200208210323.g7L3NTR04362@arch20m.dellroad.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200208210323.g7L3NTR04362@arch20m.dellroad.org>
            Archie Cobbs <archie@dellroad.org> writes:
: So my vote is for NULL = "((void *)0)" when compiling C code
: (and leaving "0" when compiling C++, which can easily be different).

That leaves just 7 files to ifdef.  Well, 9 files from the egrep:

dirent.h:#define        NULL    0
locale.h:#define        NULL    0
stddef.h:#define        NULL    0
stdio.h:#define NULL    0
stdlib.h:#define        NULL    0
string.h:#define        NULL    0
time.h:#define  NULL    0
wchar.h:#define NULL    0

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020821.003628.52042275.imp>