Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Boost-commit] svn:boost r75803 - trunk/tools/build/v2/util
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-12-04 11:39:33


On 04/12/11 20:01, Steven Watanabe wrote:
> AMDG
>
> On 12/04/2011 07:43 AM, ghost_at_[hidden] wrote:
>>
>> Modified: trunk/tools/build/v2/util/doc.jam
>> ==============================================================================
>> --- trunk/tools/build/v2/util/doc.jam (original)
>> +++ trunk/tools/build/v2/util/doc.jam 2011-12-04 10:43:05 EST (Sun, 04 Dec 2011)
>> @@ -670,7 +670,7 @@
>> while ! $(syntax)&& ! [ MATCH "^[$(ws)]*(#)" : $(line) ]&& $($(var))
>> {
>> local m = [ MATCH "^[$(ws)]*(.*)$" : $(line) ] ;
>> - if $(m)&& ! $(m) = ""
>> + if $(m)&& $(m) != ""
>
> You do realize that this is equivalent to plain
>
> if $(m)
>
> because a list containing only empty strings
> evaluates to false?

I did not realize that -- I've decided empty-list-with-list-with-empty-string
must matter here without looking at complete condition.

I've checked in a patch to simplify this further. Thanks!

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk