From bcecc990071fd36bb88c8fd29cb009ed4c04d6a2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Apr 2017 11:20:37 +0200 Subject: Restructure installables handling in the "nix" command --- src/libexpr/value.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libexpr') diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh index 802e8ed2ee75..9df516f062ef 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; -- cgit 1.4.1