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: apache-1.3/src/main http_config.c (fwd)
Date Fri, 13 Mar 1998 23:27:14 GMT
Dean Gaudet wrote:
> 
> On Fri, 13 Mar 1998, Ben Laurie wrote:
> 
> > Dean Gaudet wrote:
> > >
> > > Here's one that I fixed recently.  This looks well used enough to me.
> > >
> > > Incidentally, nobody commented on my _NONSTD observation.  It would be
> > > nice to fix all the _NONSTD exports because I really don't think they're
> > > required in many cases.
> >
> > Oh right - yeah, they're only needed on varargs _OR_ functions that have
> > their addresses handed around and may be either exported or local. If
> > you see what I mean. That's one of the things I had to fix recently to
> > make Windoze compile.
> 
> Ahhh... I see.  That makes sense -- _NONSTD gives the function C calling
> conventions, which is what you'd need to be stuffed into a command_rec or
> handler_rec.  (because the function casts for those indirect calls assume
> C calling conventions)

Zackly. In fact this one was used as a cleanup function(!)

BTW, since you are the performance freak you'll want to know this:
__stdcall is supposed to be slightly faster than C calling and also
takes less code.

> Cool.  Stuff that in a .h file somehwere ;)

I'll try to remember. Any suggestions which one?

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|  Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author    http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message