aboutsummaryrefslogtreecommitdiff
path: root/build/name
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-06 09:15:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-06 09:15:40 +0200
commit897a0e4fdf9ca90ee8d236a38e138a8ae6bc3627 (patch)
treed4c00de32d028823906d342fcd984faee8d977ff /build/name
parent9ef25ab2f9da89ab48ecce3fe1b8cbb0bc5f1e09 (diff)
Add support for lexing and parsing name pairs
We will need it for the buildspec and also if/when we support map variable types.
Diffstat (limited to 'build/name')
-rw-r--r--build/name4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/name b/build/name
index 00f0c00..fc89f44 100644
--- a/build/name
+++ b/build/name
@@ -19,6 +19,9 @@ namespace build
// without a type and directory can be used to represent any text.
// A name with directory and empty value represents a directory.
//
+ // If pair is true, then this name and the next in the list form
+ // a pair.
+ //
struct name
{
explicit
@@ -33,6 +36,7 @@ namespace build
std::string type;
path dir;
std::string value;
+ bool pair {false};
};
typedef std::vector<name> names;