mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
* Use a map to lookup primops.
* Various performance improvements in the evaluator. * Do not link against unused (and missing!) libraries (-lsglr, etc.).
This commit is contained in:
parent
c4f7ae4aa5
commit
9b44480612
12 changed files with 127 additions and 75 deletions
|
@ -245,6 +245,18 @@ Expr primToString(EvalState & state, Expr arg)
|
|||
}
|
||||
|
||||
|
||||
Expr primTrue(EvalState & state)
|
||||
{
|
||||
return ATmake("Bool(True)");
|
||||
}
|
||||
|
||||
|
||||
Expr primFalse(EvalState & state)
|
||||
{
|
||||
return ATmake("Bool(False)");
|
||||
}
|
||||
|
||||
|
||||
Expr primNull(EvalState & state)
|
||||
{
|
||||
return ATmake("Null");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue