From b17b6cd9d42eda5db0ecf69d7fdef7f4e64d6cb1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 7 Mar 2012 05:38:13 -0600 Subject: Fixed parameter and argument scoping for O_CALL nodes --- src/op.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/op.h') diff --git a/src/op.h b/src/op.h index 8b914311..c93f218b 100644 --- a/src/op.h +++ b/src/op.h @@ -69,6 +69,7 @@ private: public: enum kind_t { // Constants + PLUG, VALUE, IDENT, @@ -274,7 +275,8 @@ public: static ptr_op_t new_node(kind_t _kind, ptr_op_t _left = NULL, ptr_op_t _right = NULL); - ptr_op_t compile(scope_t& scope, const int depth = 0); + ptr_op_t compile(scope_t& scope, const int depth = 0, + scope_t * param_scope = NULL); value_t calc(scope_t& scope, ptr_op_t * locus = NULL, const int depth = 0); -- cgit v1.2.3