httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Re: Code questions (server/mpm_common.c)
Date Mon, 11 Mar 2002 14:05:44 GMT
Can this be turned into a feature macro?

Bill

> Hi,
>
> server/mpm_common.c:363
> #if defined(QNX) || defined(MPE) || defined(BEOS) || defined(_OSD_POSIX) || defined(TPF)
|| defined(__TANDEM) || defined(OS2) ||
> defined(WIN32) || defined(NETWARE)
>
> Can I break this line into smaller chunks?  If so, how?
> I seem a bit rusty on how the various preprocessors handle
> multiline #ifs (if they even do).
>
>
> server/mpm_common.c:442
>     rv = apr_file_close(pod->pod_in);
>     if (rv != APR_SUCCESS) {
>         return rv;
>     }
>
>     return rv;
> }
>
> If we are going to waste the if, we might aswell return
> APR_SUCCESS, no?
>
> Sander
>


Mime
View raw message