diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-05-20 15:59:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-05-28 10:10:44 +0200 |
commit | 7d0cbd244d218bca8b806c283a5ae095f221b324 (patch) | |
tree | 4f6ca70bcc25cec76b5fd32555e4dfb23dda6692 /libbuild2/name.ixx | |
parent | ff428efce81c7632724fd24028430523bb1e8fce (diff) |
Make notion of name pattern explicit, fix various related loose ends
Diffstat (limited to 'libbuild2/name.ixx')
-rw-r--r-- | libbuild2/name.ixx | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |