Mercurial > octave
diff libinterp/parse-tree/pt-fcn-handle.cc @ 28433:d05a4194f1ad stable
move make_fcn_handle to tree_evaluator class
* pt-eval.h, pt-eval.cc (tree_evaluator::make_fcn_handle):
New function. Change all uses of global make_fcn_handle to use this
member function instead.
(get_operator_function_name): New function.
* ov-fcn-handle.h, ov-fcn-handle.cc (make_fcn_handle): Deprecate.
Now a wrapper for tree_evaluator::make_fcn_handle.
(octave_fcn_handle::octave_fcn_handle (const std::string& name)):
New constructor.
* interpreter.h, interpreter.cc (interpreter::make_function_handle):
New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 15 Apr 2020 23:14:06 -0400 |
parents | 5bfa8e018704 |
children | e760fef2829c |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-fcn-handle.cc Fri Apr 03 22:00:06 2020 -0400 +++ b/libinterp/parse-tree/pt-fcn-handle.cc Wed Apr 15 23:14:06 2020 -0400 @@ -63,7 +63,8 @@ octave_value tree_fcn_handle::evaluate (tree_evaluator& tw, int) { - return make_fcn_handle (tw.get_interpreter (), m_name); + // XXX FCN_HANDLE: CONTEXT DEPENDENT + return tw.make_fcn_handle (m_name); } tree_anon_fcn_handle::~tree_anon_fcn_handle (void)