httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dean gaudet <dgaudet-list-new-ht...@arctic.org>
Subject Re: cvs commit: httpd-2.0/modules/filters mod_include.c
Date Sat, 06 Jan 2001 20:11:29 GMT


On Thu, 4 Jan 2001, Greg Stein wrote:

> On Thu, Jan 04, 2001 at 08:45:13PM -0000, trawick@apache.org wrote:
> > trawick     01/01/04 12:45:12
> >
> >   Modified:    modules/filters mod_include.c
> >   Log:
> >   Get rid of some warnings on Tru64 and OS/390.  void * isn't compatible
> >   with function pointers.
>
> You're kidding.

void * is not a function pointer according to ANSI C.  void (*)() on the
other hand, *is* a function pointer.  it's totally perfectly legal for a
compiler to bitch whine moan, and just not work at all if a void * is cast
to a function pointer.

there's some boxes where function pointers are massive things 512-bits
long; and the word-size is only 32-bits.  obviously casts back and forth
won't work in this case.

for a much less exotic example, 16-bit x86 big code, small data models
have 32-bit function pointers, 16-bit data pointers.

-dean


Mime
View raw message