From 70af0087d8efb3f2f7dc9ffdf2568419913f16da Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Jun 2015 15:07:03 +0200 Subject: Group "see through" iteration, take 1 --- build/algorithm.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build/algorithm.cxx') diff --git a/build/algorithm.cxx b/build/algorithm.cxx index 4f30944..5c7805f 100644 --- a/build/algorithm.cxx +++ b/build/algorithm.cxx @@ -34,10 +34,10 @@ namespace build return create_new_target (pk); } - pair + pair match_impl (action a, target& t, bool apply) { - pair r (nullptr, nullptr); + pair r (nullptr, nullptr); // Clear the resolved targets list before calling match(). The rule // is free to, say, resize() this list in match() (provided that it @@ -79,7 +79,7 @@ namespace build const string& n (i->first); const rule& ru (i->second); - void* m (nullptr); + match_result m; { auto g ( make_exception_guard ( @@ -93,7 +93,7 @@ namespace build m = ru.match (a, t, hint); } - if (m != nullptr) + if (m) { // Do the ambiguity test. // @@ -106,7 +106,7 @@ namespace build const string& n1 (i->first); const rule& ru1 (i->second); - void* m1; + match_result m1; { auto g ( make_exception_guard ( @@ -120,7 +120,7 @@ namespace build m1 = ru1.match (a, t, hint); } - if (m1 != nullptr) + if (m1) { if (!ambig) { -- cgit v1.1