1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

Add a primop unsafeGetAttrPos to return the position of an attribute

This commit is contained in:
Eelco Dolstra 2013-11-18 22:22:35 +01:00
parent fc33fd86b7
commit 285df765b9
6 changed files with 44 additions and 6 deletions

View file

@ -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;