mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
line endings
This commit is contained in:
parent
a8df239752
commit
ebf530d31e
1 changed files with 4 additions and 4 deletions
|
@ -642,9 +642,9 @@ LocalNoInline(valmap * mapBindings(Bindings *b))
|
||||||
|
|
||||||
// auto v = new Value;
|
// auto v = new Value;
|
||||||
|
|
||||||
for (auto i = b->begin(); i != b->end(); ++i)
|
for (auto i = b->begin(); i != b->end(); ++i)
|
||||||
{
|
{
|
||||||
std::string s = i->name;
|
std::string s = i->name;
|
||||||
(*map)[s] = i->value;
|
(*map)[s] = i->value;
|
||||||
// map->insert({std::string("wat"), v});
|
// map->insert({std::string("wat"), v});
|
||||||
}
|
}
|
||||||
|
@ -1174,7 +1174,7 @@ void ExprAttrs::eval(EvalState & state, Env & env, Value & v)
|
||||||
Symbol nameSym = state.symbols.create(nameVal.string.s);
|
Symbol nameSym = state.symbols.create(nameVal.string.s);
|
||||||
Bindings::iterator j = v.attrs->find(nameSym);
|
Bindings::iterator j = v.attrs->find(nameSym);
|
||||||
if (j != v.attrs->end())
|
if (j != v.attrs->end())
|
||||||
throwEvalError(i.pos, "dynamic attribute '%1%' already defined at %2%", nameSym, *j->pos,
|
throwEvalError(i.pos, "dynamic attribute '%1%' already defined at %2%", nameSym, *j->pos,
|
||||||
map1("value", &v)); // TODO dynamicAttrs to env?
|
map1("value", &v)); // TODO dynamicAttrs to env?
|
||||||
|
|
||||||
i.valueExpr->setName(nameSym);
|
i.valueExpr->setName(nameSym);
|
||||||
|
@ -2077,7 +2077,7 @@ bool EvalState::eqValues(Value & v1, Value & v2)
|
||||||
return v1.fpoint == v2.fpoint;
|
return v1.fpoint == v2.fpoint;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throwEvalError("cannot compare %1% with %2%", showType(v1), showType(v2),
|
throwEvalError("cannot compare %1% with %2%", showType(v1), showType(v2),
|
||||||
map2("value1", &v1, "value2", &v2));
|
map2("value1", &v1, "value2", &v2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue