From owner-freebsd-hackers Sat Jun 9 13:59:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id D6E4937B403 for ; Sat, 9 Jun 2001 13:59:17 -0700 (PDT) (envelope-from nectar@nectar.com) Received: by gw.nectar.com (Postfix, from userid 1001) id 6660CAF213; Sat, 9 Jun 2001 15:59:17 -0500 (CDT) Date: Sat, 9 Jun 2001 15:59:17 -0500 From: "Jacques A. Vidrine" To: Damien Neil Cc: hackers@FreeBSD.ORG Subject: Re: free() and const warnings Message-ID: <20010609155917.A2954@hellblazer.nectar.com> References: <20010607195634.I724@ringworld.oblivion.bg> <20010607124729.B4940@shade.nectar.com> <20010609004940.B50335@misago.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010609004940.B50335@misago.org>; from neild@misago.org on Sat, Jun 09, 2001 at 12:49:40AM -0700 X-Url: http://www.nectar.com/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jun 09, 2001 at 12:49:40AM -0700, Damien Neil wrote: > On Thu, Jun 07, 2001 at 12:47:30PM -0500, Jacques A. Vidrine wrote: > > C99 says of uintptr_t only that for any valid pointer p, the following > > is true: > > > > (void *)(uintptr_t)p == (void *)p > > > > Likewise for intptr_t. I read that as covering both code and data > > pointers. > > C89, at least, does not guarantee that you can convert between code > and data pointers. I believe the same holds for C99. Agreed. The original point was whether or not a uintptr_t was big enough for both types of pointers. Cheers, -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message