refactor(3p/nix/libexpr): Use absl::btree_map for AttrSets

This is the first step towards replacing the implementation of
attribute sets with an absl::btree_map.

Currently many access are done using array offsets and pointer
arithmetic, so this change is currently causing Nix to fail in various
ways.
This commit is contained in:
Vincent Ambo 2020-05-21 19:20:24 +01:00
parent 1bb9cd7749
commit 28e347effe
6 changed files with 95 additions and 78 deletions

View file

@ -258,7 +258,7 @@ class EvalState {
Value* allocAttr(Value& vAttrs, const Symbol& name);
static Bindings* allocBindings(size_t capacity);
[[deprecated]] static Bindings* allocBindings(size_t capacity);
void mkList(Value& v, size_t size);
void mkAttrs(Value& v, size_t capacity);