aboutsummaryrefslogtreecommitdiff
path: root/build2/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-23 16:53:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-23 16:53:31 +0200
commite19095ef128f53644bc7650094d8924633c79efa (patch)
treed039eb841341af2d7b3f544b95644ad1afcb846c /build2/variable
parent793f078ec31dc61921b382f14412ed3e25cc51d8 (diff)
Implement value type propagation on expansion
Currently, we only propagate types of sole, unquoted expansions (variable, function call, or eval context), similar to NULL. To untypify the value, simply quote it.
Diffstat (limited to 'build2/variable')
-rw-r--r--build2/variable5
1 files changed, 5 insertions, 0 deletions
diff --git a/build2/variable b/build2/variable
index 4fd802f..dd4f551 100644
--- a/build2/variable
+++ b/build2/variable
@@ -296,6 +296,11 @@ namespace build2
void typify (value&, const variable&);
void typify (value&, const value_type&, const variable*);
+ // Remove value type from the value reversing it to names. This is similar
+ // to reverse() below except that it modifies the value itself.
+ //
+ void untypify (value&);
+
// Reverse the value back to names. The value should not be NULL and storage
// should be empty.
//