Mercurial > octave
diff libinterp/corefcn/symtab.h @ 28437:8f3aedc5ab4f stable
split search for private functions into separate function
* fcn-info.h, fcn-info.cc
(fcn_info::fcn_info_rep::find_private_function): New function
extracted from find_scoped_function.
(fcn_info::fcn_info_rep::find_scoped_function): Use it.
(fcn_info::find_private_function): New function.
* symtab.h, symtab.cc (symbol_table::find_private_function): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Jun 2020 16:48:17 -0400 |
parents | 22e90bdcf47f |
children | 0a5b15007766 |
line wrap: on
line diff
--- a/libinterp/corefcn/symtab.h Tue Jun 09 16:52:57 2020 -0400 +++ b/libinterp/corefcn/symtab.h Tue Jun 09 16:48:17 2020 -0400 @@ -75,6 +75,9 @@ octave_value find_scoped_function (const std::string& name, const symbol_scope& search_scope); + octave_value find_private_function (const std::string& dir_name, + const std::string& name); + // FIXME: this function only finds legacy class methods, not // classdef methods. octave_value find_method (const std::string& name,