Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 17:18:30 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        Murray Stokely <murray@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/usr.sbin/sysinstall command.c config.c 
Message-ID:  <20010925170814.I28548-100000@delplex.bde.org>
In-Reply-To: <200109250123.VAA01656@glatton.cnchost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010925170814.I28548-100000>