diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
commit | 75068e7d753cf6cbe45a4bf294000dca9bd41d8b (patch) | |
tree | c6274cc10caab08349b5585206034f41ca4a575f /src/libexpr/eval.cc | |
parent | aab88127321344d5818d823bff515d127108d058 (diff) |
* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index aacdc1c8ebf1..02df4a4a325a 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1,8 +1,13 @@ #include "eval.hh" #include "parser.hh" +#include "hash.hh" +#include "util.hh" #include "nixexpr-ast.hh" +namespace nix { + + EvalState::EvalState() : normalForms(32768), primOps(128) { @@ -271,7 +276,7 @@ Expr wrapInContext(ATermList context, Expr e) static ATerm concatStrings(EvalState & state, const ATermVector & args) { ATermList context = ATempty; - ostringstream s; + std::ostringstream s; bool isPath = false; for (ATermVector::const_iterator i = args.begin(); i != args.end(); ++i) { @@ -666,3 +671,6 @@ void printEvalStats(EvalState & state) if (showStats) printATermMapStats(); } + + +} |