aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-25 11:20:37 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-25 11:20:37 +0200
commitbcecc990071fd36bb88c8fd29cb009ed4c04d6a2 (patch)
treec3f2fa86b2d751418efe7727bc345d0557c3786c /src/libexpr
parent1bb87c0487ba2a10f20c07dfd828b5d043249e31 (diff)
Restructure installables handling in the "nix" command
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/value.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh
index 802e8ed2e..9df516f06 100644
--- a/src/libexpr/value.hh
+++ b/src/libexpr/value.hh
@@ -220,6 +220,14 @@ static inline void mkApp(Value & v, Value & left, Value & right)
}
+static inline void mkPrimOpApp(Value & v, Value & left, Value & right)
+{
+ v.type = tPrimOpApp;
+ v.app.left = &left;
+ v.app.right = &right;
+}
+
+
static inline void mkStringNoCopy(Value & v, const char * s)
{
v.type = tString;