diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-30T13·10+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-30T13·10+0000 |
commit | f93f7b75be7851affd1288dc36d6d4c4f0d43743 (patch) | |
tree | 2b7678c96b91b7781ef9c619756533c9102ae1f0 /src/libexpr/eval.hh | |
parent | dce1afdc67b36e1b06d03c541758cb3cd97ccedd (diff) |
* Okay, that's a bit harder than expected.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 58e6b40d7780..c95a309359af 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -48,8 +48,11 @@ Expr evalExpr(EvalState & state, Expr e); Expr evalFile(EvalState & state, const Path & path); /* Evaluate an expression, and recursively evaluate list elements and - attributes. */ -Expr strictEvalExpr(EvalState & state, Expr e); + attributes. If `canonicalise' is true, we remove things like + position information and make sure that attribute sets are in + sorded order. */ +Expr strictEvalExpr(EvalState & state, Expr e, + bool canonicalise = false); /* Specific results. */ string evalString(EvalState & state, Expr e); |