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/parser.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libbuild2/parser.hxx') diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 1af79bf..d6044e9 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -108,9 +108,9 @@ namespace build2 // enum class pattern_mode { - ignore, // Treat as ordinary names. - detect, // Ignore pair/dir/type if the first name is a pattern. - expand // Expand to ordinary names. + preserve, // Preserve as name pattern. + expand, // Expand to non-pattern names. + detect // Implementation detail mode (see code for more information). }; // If one is true then parse a single (logical) line (logical means it @@ -400,8 +400,8 @@ namespace build2 // As above but also handle value attributes. // value - parse_value_with_attributes (token& t, token_type& tt, - pattern_mode pmode, + parse_value_with_attributes (token&, token_type&, + pattern_mode, const char* what = "name", const string* separators = &name_separators, bool chunk = false); -- cgit v1.1