From owner-freebsd-current@FreeBSD.ORG Mon Mar 1 21:47:00 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED93916A4CE for ; Mon, 1 Mar 2004 21:47:00 -0800 (PST) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4225F43D2D for ; Mon, 1 Mar 2004 21:47:00 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87])i225kMnX024874; Tue, 2 Mar 2004 16:46:22 +1100 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i225kJ5c020294; Tue, 2 Mar 2004 16:46:21 +1100 Date: Tue, 2 Mar 2004 16:46:18 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Erik Trulsson In-Reply-To: <20040301142145.GA59401@falcon.midgard.homeip.net> Message-ID: <20040302163959.R8656@gamplex.bde.org> References: <200402291546.i1TFkZ0w070591@grimreaper.grondar.org> <20040301142145.GA59401@falcon.midgard.homeip.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: mark@grondar.org cc: current@freebsd.org Subject: Re: NULL vs 0 vs 0L bikeshed time X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2004 05:47:01 -0000 On Mon, 1 Mar 2004, Erik Trulsson wrote: > On a related note, is there some particular reason for having the C++ > definition depend on __LP64__ or could one not just as well define NULL > as (0L) all the time there? Mainly the same reason that 0 was only changed to (void *)0 (sic) for the _KERNEL_ case only, but more so: the type sizes may be different so sloppy but working code may break. > (I.e. is there any platform FreeBSD runs on that have 32-bit longs and > 64-bit pointers, or does all of them have pointers and long being the > same size?) Someone mentioned that i386's can have 64-bit longs (IP32L64). I had this booting and running most utilities, but it couldn't quite build itself and I haven't run it for a year or two. Bruce