From c897bac54954373f63511702731fe2cb23c0c98e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Nov 2013 17:04:36 +0000 Subject: Make function calls tail-recursive --- src/libexpr/eval.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 4e8e7e5f9ca0..df34c7651c10 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -227,6 +227,7 @@ public: bool eqValues(Value & v1, Value & v2); void callFunction(Value & fun, Value & arg, Value & v); + void callPrimOp(Value & fun, Value & arg, Value & v); /* Automatically call a function for which each argument has a default value or has a binding in the `args' map. */ @@ -268,6 +269,8 @@ private: typedef std::map FunctionCalls; FunctionCalls functionCalls; + void incrFunctionCall(ExprLambda * fun); + typedef std::map AttrSelects; AttrSelects attrSelects; -- cgit 1.4.1