From 9fa5209175dffb881e8ec6c5f6ad4fc54448244a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Aug 2015 14:48:41 +0200 Subject: Rework postponed logic Specifically, now postponed is only used by the execution mode logic and rules should not return it directly. --- build/algorithm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build/algorithm') diff --git a/build/algorithm b/build/algorithm index 99e6c2b..af461dc 100644 --- a/build/algorithm +++ b/build/algorithm @@ -67,13 +67,15 @@ namespace build // Match and apply a rule to the action/target with ambiguity // detection. Increment the target's dependents count, which // means that you should call this function with the intent - // to also call execute(). In case of optimizations that - // would avoid calling execute(), decrement the dependents - // cound manually to compensate. + // to also call execute(). In case of optimizations that would + // avoid calling execute(), call unmatch() to indicate this. // void match (action, target&); + void + unmatch (action, target&); + // Match (but do not apply) a rule to the action/target with // ambiguity detection. Note that this function does not touch // the dependents count. @@ -84,7 +86,7 @@ namespace build // Match a "delegate rule" from withing another rules' apply() // function. Return recipe and recipe action (if any). Note // that unlike match(), this call doesn't increment the - // dependents count. See also execute_delegate(). + // dependents count. See also the companion execute_delegate(). // std::pair match_delegate (action, target&); -- cgit v1.1