Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jul 23, 2015
1 parent c8bb237 commit cb4320c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
5 changes: 0 additions & 5 deletions src/libexpr/eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,9 @@ EvalState::EvalState(const Strings & _searchPath)
, sLine(symbols.create("line"))
, sColumn(symbols.create("column"))
, sFunctor(symbols.create("__functor"))
, repair(false)
, baseEnv(allocEnv(128))
, staticBaseEnv(false, 0)
, baseEnvDispl(0)
{
nrEnvs = nrValuesInEnvs = nrValues = nrListElems = 0;
nrAttrsets = nrAttrsInAttrsets = nrOpUpdates = nrOpUpdateValuesCopied = 0;
nrListConcats = nrPrimOpCalls = nrFunctionCalls = 0;
countCalls = getEnv("NIX_COUNT_CALLS", "0") != "0";

restricted = settings.get("restrict-eval", false);
Expand Down
26 changes: 13 additions & 13 deletions src/libexpr/eval.hh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public:

/* If set, force copying files to the Nix store even if they
already exist there. */
bool repair;
bool repair = false;

/* If set, don't allow access to files outside of the Nix search
path or to environment variables. */
Expand Down Expand Up @@ -183,7 +183,7 @@ public:

private:

unsigned int baseEnvDispl;
unsigned int baseEnvDispl = 0;

void createBaseEnv();

Expand Down Expand Up @@ -240,17 +240,17 @@ public:

private:

unsigned long nrEnvs;
unsigned long nrValuesInEnvs;
unsigned long nrValues;
unsigned long nrListElems;
unsigned long nrAttrsets;
unsigned long nrAttrsInAttrsets;
unsigned long nrOpUpdates;
unsigned long nrOpUpdateValuesCopied;
unsigned long nrListConcats;
unsigned long nrPrimOpCalls;
unsigned long nrFunctionCalls;
unsigned long nrEnvs = 0;
unsigned long nrValuesInEnvs = 0;
unsigned long nrValues = 0;
unsigned long nrListElems = 0;
unsigned long nrAttrsets = 0;
unsigned long nrAttrsInAttrsets = 0;
unsigned long nrOpUpdates = 0;
unsigned long nrOpUpdateValuesCopied = 0;
unsigned long nrListConcats = 0;
unsigned long nrPrimOpCalls = 0;
unsigned long nrFunctionCalls = 0;

bool countCalls;

Expand Down

0 comments on commit cb4320c

Please sign in to comment.