httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <ad...@rowe-clan.net>
Subject Re: [PATCH] Add back -X functionality
Date Fri, 22 Jun 2001 04:12:27 GMT
From: "Ben Laurie" <ben@algroup.co.uk>
Sent: Thursday, June 21, 2001 5:39 PM


> Aaron Bannert wrote:
> > p.s. why would "!!" fix bugs on some platforms if ap_exists_config_define
> > can only return 0 or 1? I can only see using !! to normalize some non-bool
> > return to 0/1 for some weird logic, and even then it's not readable.
> 
> As I was responsible for !!, I guess I should explain. The original
> version was flag=!!getenv("SOMETHING").
> 
> I agree it isn't totally readable, and asked permission before including
> it.

True, flag = (getenv("SOMETHING") != NULL) is much clearer.


Mime
View raw message