From owner-freebsd-arch Tue Aug 20 23:37:12 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81B9A37B400 for ; Tue, 20 Aug 2002 23:37:08 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57EF843E6A for ; Tue, 20 Aug 2002 23:37:07 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g7L6b5Fl021023; Wed, 21 Aug 2002 00:37:05 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 21 Aug 2002 00:36:28 -0600 (MDT) Message-Id: <20020821.003628.52042275.imp@bsdimp.com> To: archie@dellroad.org Cc: freebsd-arch@FreeBSD.ORG Subject: Re: NULL From: "M. Warner Losh" In-Reply-To: <200208210323.g7L3NTR04362@arch20m.dellroad.org> References: <20020821114425.Q26007-100000@gamplex.bde.org> <200208210323.g7L3NTR04362@arch20m.dellroad.org> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <200208210323.g7L3NTR04362@arch20m.dellroad.org> Archie Cobbs 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