Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 09:37:01 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Bakul Shah <bakul@bitblocks.com>, 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:  <200109251537.f8PFb1761123@harmony.village.org>
In-Reply-To: Your message of "Tue, 25 Sep 2001 17:18:30 %2B1000." <20010925170814.I28548-100000@delplex.bde.org> 
References:  <20010925170814.I28548-100000@delplex.bde.org>  

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




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