From c395a48be2ad58560590897e11793db032873ed6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 21 May 2020 04:56:22 +0100 Subject: 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. --- third_party/nix/src/libexpr/get-drvs.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'third_party/nix/src/libexpr/get-drvs.cc') diff --git a/third_party/nix/src/libexpr/get-drvs.cc b/third_party/nix/src/libexpr/get-drvs.cc index 39870abcbdfa..4d412a9c619e 100644 --- a/third_party/nix/src/libexpr/get-drvs.cc +++ b/third_party/nix/src/libexpr/get-drvs.cc @@ -99,7 +99,7 @@ DrvInfo::Outputs DrvInfo::queryOutputs(bool onlyOutputsToInstall) { /* Evaluate the corresponding set. */ string name = state->forceStringNoCtx(*i->value->listElems()[j], *i->pos); - Bindings::iterator out = attrs->find(state->symbols.create(name)); + Bindings::iterator out = attrs->find(state->symbols.Create(name)); if (out == attrs->end()) { continue; // FIXME: throw error? } @@ -213,7 +213,7 @@ Value* DrvInfo::queryMeta(const string& name) { if (getMeta() == nullptr) { return nullptr; } - Bindings::iterator a = meta->find(state->symbols.create(name)); + Bindings::iterator a = meta->find(state->symbols.Create(name)); if (a == meta->end() || !checkMeta(*a->value)) { return nullptr; } @@ -291,7 +291,7 @@ void DrvInfo::setMeta(const string& name, Value* v) { getMeta(); Bindings* old = meta; meta = state->allocBindings(1 + (old != nullptr ? old->size() : 0)); - Symbol sym = state->symbols.create(name); + Symbol sym = state->symbols.Create(name); if (old != nullptr) { for (auto i : *old) { if (i.name != sym) { @@ -377,7 +377,7 @@ static void getDerivations(EvalState& state, Value& vIn, /* !!! undocumented hackery to support combining channels in nix-env.cc. */ bool combineChannels = - v.attrs->find(state.symbols.create("_combineChannels")) != + v.attrs->find(state.symbols.Create("_combineChannels")) != v.attrs->end(); /* Consider the attributes in sorted order to get more @@ -401,7 +401,7 @@ static void getDerivations(EvalState& state, Value& vIn, `recurseForDerivations = true' attribute. */ if (i->value->type == tAttrs) { Bindings::iterator j = i->value->attrs->find( - state.symbols.create("recurseForDerivations")); + state.symbols.Create("recurseForDerivations")); if (j != i->value->attrs->end() && state.forceBool(*j->value, *j->pos)) { getDerivations(state, *i->value, pathPrefix2, autoArgs, drvs, done, -- cgit 1.4.1