From 101987533ca35e4aa3515b25415f1abba46e796f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Jul 2020 10:50:42 +0200 Subject: Add support for ad hoc importation --- libbuild2/name.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libbuild2/name.hxx') diff --git a/libbuild2/name.hxx b/libbuild2/name.hxx index 8756cb7..b25a3e3 100644 --- a/libbuild2/name.hxx +++ b/libbuild2/name.hxx @@ -101,6 +101,18 @@ namespace build2 return (ignore_qual || unqualified ()) && untyped () && !value.empty (); } + bool + absolute () const + { + return !dir.empty () && dir.absolute (); + } + + bool + relative () const + { + return dir.empty () || dir.relative (); + } + int compare (const name&) const; }; -- cgit v1.1