Mercurial > octave
comparison libinterp/corefcn/module.mk @ 30919:4ed7dfe28584
move eval of anon fcn handles and built-in and mex functions to pt-eval.cc
For consistency with the evaluation of user-defined functions and
scripts, move the evaluation of anonymous function handles and
built-in and mex functions to the tree_evaluator class in pt-eval.cc.
* pt-eval.h, pt-eval.cc (tree_evaluator::evaluate_anon_fcn_handle,
tree_evaluator::execute_builtin_function,
tree_evaluator::execute_mex_function): New functions extracted
from tree_anon_fcn_handle::evalueate, octave_builtin::execute and
octave_mex_function::execute, respectively.
* ov-builtin.cc (octave_builtin::execute):
Forward to tree_evaluator::execute_builtin_function.
* ov-mex-fcn.cc (octave_mex_function::execute):
Forward to tree_evaluator::execute_mex_function.
* pt-fcn-handle.cc (tree_anon_fcn_handle::evaluate):
Forward to tree_evaluator::evaluate_anon_fcn_handle.
* mex.cc: Move call_mex inside octave namespace.
* mex-private.h: New file.
* libinterp/corefcn/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 08 Apr 2022 14:11:05 -0400 |
parents | d31d4f2504de |
children | cd38f31e9b4b |
comparison
equal
deleted
inserted
replaced
30918:297f32524dd8 | 30919:4ed7dfe28584 |
---|---|
56 %reldir%/ls-mat4.h \ | 56 %reldir%/ls-mat4.h \ |
57 %reldir%/ls-mat5.h \ | 57 %reldir%/ls-mat5.h \ |
58 %reldir%/ls-oct-text.h \ | 58 %reldir%/ls-oct-text.h \ |
59 %reldir%/ls-oct-binary.h \ | 59 %reldir%/ls-oct-binary.h \ |
60 %reldir%/ls-utils.h \ | 60 %reldir%/ls-utils.h \ |
61 %reldir%/mex.h \ | |
62 %reldir%/mexproto.h \ | 61 %reldir%/mexproto.h \ |
63 %reldir%/mx-type-traits.h \ | 62 %reldir%/mx-type-traits.h \ |
64 %reldir%/mxarray.h \ | 63 %reldir%/mxarray.h \ |
65 %reldir%/oct-errno.h \ | 64 %reldir%/oct-errno.h \ |
66 %reldir%/oct-fstrm.h \ | 65 %reldir%/oct-fstrm.h \ |
101 %reldir%/xpow.h \ | 100 %reldir%/xpow.h \ |
102 %reldir%/gzfstream.h | 101 %reldir%/gzfstream.h |
103 | 102 |
104 NOINSTALL_COREFCN_INC = \ | 103 NOINSTALL_COREFCN_INC = \ |
105 %reldir%/interpreter-private.h \ | 104 %reldir%/interpreter-private.h \ |
105 %reldir%/mex-private.h \ | |
106 %reldir%/oct-hdf5.h \ | 106 %reldir%/oct-hdf5.h \ |
107 %reldir%/oct-opengl.h | 107 %reldir%/oct-opengl.h |
108 | 108 |
109 ## oct-tex-parser.h is in the SRC list so that it will be distributed | 109 ## oct-tex-parser.h is in the SRC list so that it will be distributed |
110 ## but not installed. | 110 ## but not installed. |