diff libinterp/octave-value/ov-builtin.h @ 23532:084245f9bd03

pass reference to evaluator to octave_function call methods * interpreter-private.h, interpreter-private.cc: (__get_evaluator__): New function. * interpreter.h, interpreter.cc (interpreter::m_evaluator): Now a reference instead of a pointer. Change all uses. (interpreter::get_evaluator): New function. (intrepreter::current_evaluator): Delete. Replace all uses with __get_evaluator__. * ov-fcn.h, ov-fcn.cc (octave_function::call): Pass reference to tree_evaluator. Change all functions in derived classes and all uses. (octave_function::subsref): Delete. * ov-usr-fcn.h, ov-usr-fcn.cc (octave_user_script::subsref): Delete. * pt-eval.h, pt-eval.cc (tree_evaluator::m_interpreter): Now a reference instead of a pointer. Change all uses. * ov-classdef.h, ov-classdef.cc (execute_ov): Delete. Replaces uses with calls to feval. (octave_classdef_superclass_ref::subsref): Delete.
author John W. Eaton <jwe@octave.org>
date Thu, 25 May 2017 13:13:17 -0400
parents 9f925aed7d1b
children 3bb0a937c071
line wrap: on
line diff
--- a/libinterp/octave-value/ov-builtin.h	Thu May 25 08:10:34 2017 -0700
+++ b/libinterp/octave-value/ov-builtin.h	Thu May 25 13:13:17 2017 -0400
@@ -38,6 +38,7 @@
 
 namespace octave
 {
+  class tree_evaluator;
   class interpreter;
 }
 
@@ -86,7 +87,8 @@
 
   bool is_builtin_function (void) const { return true; }
 
-  octave_value_list call (int nargout, const octave_value_list& args);
+  octave_value_list call (octave::tree_evaluator& tw, int nargout,
+                          const octave_value_list& args);
 
   jit_type * to_jit (void) const;