From owner-cvs-all Tue Sep 25 8:37:14 2001 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 03E2237B415; Tue, 25 Sep 2001 08:37:06 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f8PFb4u41474; Tue, 25 Sep 2001 09:37:04 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id f8PFb1761123; Tue, 25 Sep 2001 09:37:02 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200109251537.f8PFb1761123@harmony.village.org> To: Bruce Evans Subject: Re: cvs commit: src/usr.sbin/sysinstall command.c config.c Cc: Bakul Shah , Murray Stokely , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Tue, 25 Sep 2001 17:18:30 +1000." <20010925170814.I28548-100000@delplex.bde.org> References: <20010925170814.I28548-100000@delplex.bde.org> Date: Tue, 25 Sep 2001 09:37:01 -0600 From: Warner Losh 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 In message <20010925170814.I28548-100000@delplex.bde.org> Bruce Evans writes: : 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. We need a %F for functions :-). This is a hole in the ansi spec. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message