mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Introduce Value type setters and make use of them
This commit is contained in:
parent
fa307875e9
commit
9f056f7afd
5 changed files with 43 additions and 24 deletions
|
@ -25,7 +25,7 @@ void EvalState::mkAttrs(Value & v, size_t capacity)
|
|||
return;
|
||||
}
|
||||
clearValue(v);
|
||||
v.type = tAttrs;
|
||||
v.setAttrs();
|
||||
v.attrs = allocBindings(capacity);
|
||||
nrAttrsets++;
|
||||
nrAttrsInAttrsets += capacity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue