1 : namespace nix {
2 : AFun symDerive = 0;
3 : AFun symEnvBinding = 0;
4 : AFun symDerivationInput = 0;
5 : AFun symDerivationOutput = 0;
6 : AFun symOldClosure = 0;
7 : AFun symOldClosureElem = 0;
8 :
9 345 : void initDerivationsHelpers() {
10 345 : symDerive = ATmakeAFun("Derive", 7, ATfalse);
11 345 : ATprotectAFun(symDerive);
12 345 : symEnvBinding = ATmakeAFun("", 2, ATfalse);
13 345 : ATprotectAFun(symEnvBinding);
14 345 : symDerivationInput = ATmakeAFun("", 2, ATfalse);
15 345 : ATprotectAFun(symDerivationInput);
16 345 : symDerivationOutput = ATmakeAFun("", 4, ATfalse);
17 345 : ATprotectAFun(symDerivationOutput);
18 345 : symOldClosure = ATmakeAFun("Closure", 2, ATfalse);
19 345 : ATprotectAFun(symOldClosure);
20 345 : symOldClosureElem = ATmakeAFun("", 2, ATfalse);
21 345 : ATprotectAFun(symOldClosureElem);
22 : }
23 : }
|