httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: cvs commit: httpd-2.0/server/mpm/worker worker.c
Date Wed, 20 Mar 2002 18:03:42 GMT
Jeff Trawick wrote:
> 
> It doesn't look too cool :)

I agree! :)

> You don't have to use the macro (of course that extra type-checking
> via the designated initializers is nice)...
> 
> If you use the macro, couldn't you pass a variable to the macro, and
> use the preprocessor to build the string pointed to by that variable?
> 
> static const char *accept_mutex_help =
> "Valid accept mutexes for this platform and MPM are: default"
> #if APR_HAS_FLOCK_SERIALIZE
> ", flock"
> #endif
> #if APR_HAS_FCNTL_SERIALIZE
> ", fcntl"
> #endif
> #if APR_HAS_SYSVSEM_SERIALIZE && !defined(PERCHILD_MPM)
> ", sysvsem"
> #endif
> #if APR_HAS_PROC_PTHREAD_SERIALIZE
> , pthread"
> #endif
> "."
> 
> then specify accept_mutex_help as the last parm to AP_INIT_TAKE1()?
> 

I'll be looking at that ;) Not sure if it will actually take a variable
though...

-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message