From 7d0cbd244d218bca8b806c283a5ae095f221b324 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 May 2021 15:59:59 +0200 Subject: Make notion of name pattern explicit, fix various related loose ends --- libbuild2/name.ixx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbuild2/name.ixx') diff --git a/libbuild2/name.ixx b/libbuild2/name.ixx index 837915f..80a097e 100644 --- a/libbuild2/name.ixx +++ b/libbuild2/name.ixx @@ -20,6 +20,9 @@ namespace build2 if (r == 0) r = pair < x.pair ? -1 : (pair > x.pair ? 1 : 0); + if (r == 0) + r = pattern == x.pattern ? 0 : (!pattern && x.pattern ? -1 : 1); + return r; } -- cgit v1.1