fix(3p/nix): Compatibility with updated SymbolTable
The functions in SymbolTable have been renamed to match the Google Style guide, and some debug-only functions have been removed.
This commit is contained in:
parent
97e85f94e5
commit
c395a48be2
21 changed files with 141 additions and 137 deletions
10
third_party/nix/src/libexpr/primops/context.cc
vendored
10
third_party/nix/src/libexpr/primops/context.cc
vendored
|
|
@ -108,10 +108,10 @@ static void prim_getContext(EvalState& state, const Pos& pos, Value** args,
|
|||
|
||||
state.mkAttrs(v, contextInfos.size());
|
||||
|
||||
auto sPath = state.symbols.create("path");
|
||||
auto sAllOutputs = state.symbols.create("allOutputs");
|
||||
auto sPath = state.symbols.Create("path");
|
||||
auto sAllOutputs = state.symbols.Create("allOutputs");
|
||||
for (const auto& info : contextInfos) {
|
||||
auto& infoVal = *state.allocAttr(v, state.symbols.create(info.first));
|
||||
auto& infoVal = *state.allocAttr(v, state.symbols.Create(info.first));
|
||||
state.mkAttrs(infoVal, 3);
|
||||
if (info.second.path) {
|
||||
mkBool(*state.allocAttr(infoVal, sPath), true);
|
||||
|
|
@ -145,8 +145,8 @@ static void prim_appendContext(EvalState& state, const Pos& pos, Value** args,
|
|||
|
||||
state.forceAttrs(*args[1], pos);
|
||||
|
||||
auto sPath = state.symbols.create("path");
|
||||
auto sAllOutputs = state.symbols.create("allOutputs");
|
||||
auto sPath = state.symbols.Create("path");
|
||||
auto sAllOutputs = state.symbols.Create("allOutputs");
|
||||
for (auto& i : *args[1]->attrs) {
|
||||
if (!state.store->isStorePath(i.name))
|
||||
throw EvalError("Context key '%s' is not a store path, at %s", i.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue