httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: httpd-2.0/modules/metadata mod_headers.c
Date Thu, 07 Jun 2001 16:51:37 GMT
Jeff Trawick wrote:
> 
> Ben Laurie <ben@algroup.co.uk> writes:
> 
> > Greg Stein wrote:
> > >
> > > On Mon, Jun 04, 2001 at 10:43:51AM -0000, trawick@apache.org wrote:
> > > > trawick     01/06/04 03:43:51
> > > >
> > > >   Modified:    modules/metadata mod_headers.c
> > > >   Log:
> > > >   void * isn't compatible with a function pointer; deal with retrieving
a
> > > >   function pointer from apr_hash_get()
> > >
> > > If it isn't compatible, then we can't store them into an apr_hash_t. There
> > > is a more basic problem than a simple cast.
> >
> > I believe that strictly speaking you have to make a union of void * and
> > (void *)(). And there are platforms where it matters.
> 
> It would seem (to me) more friendly to apr_hash() users to make them
> create their own structure to store the function pointer in, no?  That
> lets them abuse it of course but it keeps the usual
> non-function-pointer code cleaner.
> 
> So what is such a platform?  I'm curious.

Ah. Umm, someone keeps bugging me about one. I think its OtherBill and I
think the platform is that IBM mainframe thingy.

> > Did I ever mention that C++ and templates make these problems go away?
> > :-)
> 
> but while everybody can pick up filtering in a couple of days, the use
> of C++ in apache would scare off new contributors :)

Wusses!

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Mime
View raw message