From owner-freebsd-hackers Sat Jun 9 0:49:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from zorg.centauri.org (adsl-206-170-148-73.dsl.snfc21.pacbell.net [206.170.148.73]) by hub.freebsd.org (Postfix) with ESMTP id 1942E37B405 for ; Sat, 9 Jun 2001 00:49:51 -0700 (PDT) (envelope-from neild@adira.centauri.org) Received: by zorg.centauri.org (Postfix, from userid 1001) id A5D959BC6; Sat, 9 Jun 2001 00:49:40 -0700 (PDT) Date: Sat, 9 Jun 2001 00:49:40 -0700 From: Damien Neil To: hackers@FreeBSD.ORG Subject: Re: free() and const warnings Message-ID: <20010609004940.B50335@misago.org> References: <20010607195634.I724@ringworld.oblivion.bg> <20010607124729.B4940@shade.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: <20010607124729.B4940@shade.nectar.com>; from n@nectar.com on Thu, Jun 07, 2001 at 12:47:30PM -0500 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 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. - Damien To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message