mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
* Improve sharing.
This commit is contained in:
parent
95cc417d76
commit
7b851915bf
3 changed files with 25 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue