Mercurial > octave
diff libinterp/corefcn/fcn-info.cc @ 27016:9b261300a001
move file-scope static autoload map variable and functions to evaluator
* interpreter.h, interpreter.cc (interpreter::autoloaded_functions):
New function.
* pt-eval.h, pt-eval.cc (tree_evaluator::m_autoload_map): New member
variable, replaces static file-scope variable in oct-parse.yy.
(tree_evaluator::get_autoload_map, tree_evaluator::lookup_autoload,
tree_evaluator::autoloaded_functions, tree_evaluator::add_autoload,
tree_evaluator::reverse_lookup_autoload,
tree_evaluator::remove_autoload): New functions, replace similar
global and file-scope static functions in oct-parse.yy. Change all uses.
(check_autoload_file): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 01 Apr 2019 11:15:06 +0000 |
parents | 711f23332204 |
children | 85233937b6b7 |
line wrap: on
line diff
--- a/libinterp/corefcn/fcn-info.cc Sun Mar 31 20:50:10 2019 +0000 +++ b/libinterp/corefcn/fcn-info.cc Mon Apr 01 11:15:06 2019 +0000 @@ -713,7 +713,10 @@ if (! autoload_function.is_defined ()) { - std::string file_name = lookup_autoload (name); + tree_evaluator& tw + = __get_evaluator__ ("fcn_info::fcn_info_rep::x_builtin_find"); + + std::string file_name = tw.lookup_autoload (name); if (! file_name.empty ()) {