mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
* More primops.
This commit is contained in:
parent
c3aa615a5f
commit
c9170be2bd
4 changed files with 92 additions and 184 deletions
|
@ -132,7 +132,7 @@ struct EvalState;
|
|||
std::ostream & operator << (std::ostream & str, Value & v);
|
||||
|
||||
|
||||
struct EvalState
|
||||
class EvalState
|
||||
{
|
||||
DrvRoots drvRoots;
|
||||
DrvHashes drvHashes; /* normalised derivation hashes */
|
||||
|
@ -144,6 +144,8 @@ struct EvalState
|
|||
|
||||
bool allowUnsafeEquality;
|
||||
|
||||
public:
|
||||
|
||||
EvalState();
|
||||
|
||||
/* Evaluate an expression read from the given file to normal
|
||||
|
@ -214,6 +216,9 @@ public:
|
|||
Env & allocEnv();
|
||||
|
||||
void mkList(Value & v, unsigned int length);
|
||||
|
||||
/* Print statistics. */
|
||||
void printStats();
|
||||
};
|
||||
|
||||
|
||||
|
@ -244,9 +249,6 @@ ATermList flattenList(EvalState & state, Expr e);
|
|||
Expr autoCallFunction(Expr e, const ATermMap & args);
|
||||
#endif
|
||||
|
||||
/* Print statistics. */
|
||||
void printEvalStats(EvalState & state);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue