From 285df765b91588e39d6f35a32e30b84c3cb5be75 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 18 Nov 2013 22:22:35 +0100 Subject: Add a primop unsafeGetAttrPos to return the position of an attribute --- src/libexpr/value.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libexpr/value.hh') diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh index ee5c7397b3a9..982582793419 100644 --- a/src/libexpr/value.hh +++ b/src/libexpr/value.hh @@ -116,6 +116,13 @@ static inline void mkBool(Value & v, bool b) } +static inline void mkNull(Value & v) +{ + v.type = tNull; + v.app.left = v.app.right = 00; // scrub +} + + static inline void mkApp(Value & v, Value & left, Value & right) { v.type = tApp; -- cgit 1.4.1