[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37-fix-conditions-reduce.patch
From: |
Akim Demaille |
Subject: |
37-fix-conditions-reduce.patch |
Date: |
Sun, 11 Mar 2001 19:09:05 +0100 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* automake.in (&variable_conditions_reduce): FALSE is absorbent.
(&variable_conditions): Don't include `FALSE' in the result.
Index: ChangeLog
from Akim Demaille <address@hidden>
(&variable_conditions): Don't include `FALSE' in the result.
Index: automake.in
--- automake.in Sun, 11 Mar 2001 10:15:17 +0100 akim (am/f/39_automake.i 1.157
755)
+++ automake.in Sun, 11 Mar 2001 10:37:06 +0100 akim (am/f/39_automake.i 1.157
755)
@@ -5755,6 +5755,8 @@ sub variable_conditions ($)
%vars_scanned = ();
foreach my $cond (&variable_conditions_sub ($var, '', ()))
{
+ next
+ if $cond eq 'FALSE';
$uniqify{$cond} = 1;
}
@@ -5918,9 +5918,15 @@
my @ret = ();
foreach my $cond (@conds)
{
- next
- if ! conditionals_true_when (($cond), (@ret));
- push (@ret, $cond);
+ # FALSE is absorbent.
+ if ($cond eq 'FALSE')
+ {
+ return ('FALSE');
+ }
+ elsif (conditionals_true_when (($cond), (@ret)))
+ {
+ push (@ret, $cond);
+ }
}
return @ret;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 37-fix-conditions-reduce.patch,
Akim Demaille <=