From owner-cvs-all Tue Sep 25 0:19:17 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 6DE6337B41F; Tue, 25 Sep 2001 00:19:11 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA09896; Tue, 25 Sep 2001 17:19:05 +1000 Date: Tue, 25 Sep 2001 17:18:30 +1000 (EST) From: Bruce Evans X-X-Sender: To: Bakul Shah Cc: Murray Stokely , , Subject: Re: cvs commit: src/usr.sbin/sysinstall command.c config.c In-Reply-To: <200109250123.VAA01656@glatton.cnchost.com> Message-ID: <20010925170814.I28548-100000@delplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 24 Sep 2001, Bakul Shah wrote: > I never understood the restriction of why a function ptr > can't be cast to void*. It is not like you are going to > create self-modifying functions..... It's because function pointers might be larger than "void *". E.g., on i386's in real mode (or in protected mode using "far" pointers), function pointers might be "far" and "void *" might be "near". > Using %x or %lx for > printing a fn ptr is as wrong as using %p. And to me %p is > likely to be the better choice. All are wrong. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message