1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

* Improve sharing.

This commit is contained in:
Eelco Dolstra 2010-04-01 12:04:57 +00:00
parent 95cc417d76
commit 7b851915bf
3 changed files with 25 additions and 19 deletions

View file

@ -112,6 +112,13 @@ static inline void mkThunk(Value & v, Env & env, Expr expr)
}
static inline void mkCopy(Value & v, Value & src)
{
v.type = tCopy;
v.val = &src;
}
void mkString(Value & v, const char * s);
void mkString(Value & v, const string & s, const PathSet & context = PathSet());
void mkPath(Value & v, const char * s);