[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
217/376: Rename strictForceValue -> forceValueDeep
From: |
Ludovic Courtès |
Subject: |
217/376: Rename strictForceValue -> forceValueDeep |
Date: |
Wed, 28 Jan 2015 22:05:10 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 1e0a799bef4696b1f71d4a25fd117a2f59708f21
Author: Eelco Dolstra <address@hidden>
Date: Mon Sep 22 15:03:59 2014 +0200
Rename strictForceValue -> forceValueDeep
---
src/libexpr/eval.cc | 6 +++---
src/libexpr/eval.hh | 2 +-
src/nix-instantiate/nix-instantiate.cc | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 1dab5ce..f1212cd 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -1181,18 +1181,18 @@ void ExprPos::eval(EvalState & state, Env & env, Value
& v)
}
-void EvalState::strictForceValue(Value & v)
+void EvalState::forceValueDeep(Value & v)
{
forceValue(v);
if (v.type == tAttrs) {
foreach (Bindings::iterator, i, *v.attrs)
- strictForceValue(*i->value);
+ forceValueDeep(*i->value);
}
else if (v.type == tList) {
for (unsigned int n = 0; n < v.list.length; ++n)
- strictForceValue(*v.list.elems[n]);
+ forceValueDeep(*v.list.elems[n]);
}
}
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index d8ea0f0..ed572b4 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -188,7 +188,7 @@ public:
/* Force a value, then recursively force list elements and
attributes. */
- void strictForceValue(Value & v);
+ void forceValueDeep(Value & v);
/* Force `v', and then verify that it has the expected type. */
NixInt forceInt(Value & v, const Pos & pos);
diff --git a/src/nix-instantiate/nix-instantiate.cc
b/src/nix-instantiate/nix-instantiate.cc
index 6bd1a9d..9a6e178 100644
--- a/src/nix-instantiate/nix-instantiate.cc
+++ b/src/nix-instantiate/nix-instantiate.cc
@@ -61,7 +61,7 @@ void processExpr(EvalState & state, const Strings & attrPaths,
else if (output == okJSON)
printValueAsJSON(state, strict, vRes, std::cout, context);
else {
- if (strict) state.strictForceValue(vRes);
+ if (strict) state.forceValueDeep(vRes);
std::cout << vRes << std::endl;
}
} else {
- 211/376: Fix off-by-one, (continued)
- 211/376: Fix off-by-one, Ludovic Courtès, 2015/01/28
- 215/376: Add ‘seq’ primop, Ludovic Courtès, 2015/01/28
- 209/376: Store Attrs inside Bindings, Ludovic Courtès, 2015/01/28
- 208/376: Remove bogus comment, Ludovic Courtès, 2015/01/28
- 219/376: Add ‘deepSeq’ primop, Ludovic Courtès, 2015/01/28
- 225/376: Pass through --set from nix-install-package command line to nix-env, Ludovic Courtès, 2015/01/28
- 214/376: Add a function ‘valueSize’, Ludovic Courtès, 2015/01/28
- 145/376: Use proper quotes everywhere, Ludovic Courtès, 2015/01/28
- 226/376: Add --force-name support for --set in nix-env, to support nix-install-package --set, Ludovic Courtès, 2015/01/28
- 220/376: Don't evaluate inside a "throw", Ludovic Courtès, 2015/01/28
- 217/376: Rename strictForceValue -> forceValueDeep,
Ludovic Courtès <=
- 227/376: Updated documentation for nix-install-package to mention --set flag, Ludovic Courtès, 2015/01/28
- 228/376: Fix use of PAGER during tests, Ludovic Courtès, 2015/01/28
- 221/376: Remove release notes Hydra product, Ludovic Courtès, 2015/01/28
- 218/376: Make forceValueDeep work on values with cycles, Ludovic Courtès, 2015/01/28
- 229/376: Remove bash requirement, Ludovic Courtès, 2015/01/28
- 231/376: nix-daemon: Close unnecessary fd, Ludovic Courtès, 2015/01/28
- 230/376: Bindings: Remove copy constructor, Ludovic Courtès, 2015/01/28
- 222/376: Add missing static, Ludovic Courtès, 2015/01/28
- 223/376: manual: add a note that lists are strict in length, Ludovic Courtès, 2015/01/28
- 232/376: printMissing(): Print derivations in approximate build order, Ludovic Courtès, 2015/01/28