Mercurial > octave
changeset 30655:ac74380e9d46 stable
eliminate duplicate inline wrappers for some built-in functions (bug #61784)
* mk-builtins.pl: Don't define wrapper functions for built-in
functions that were moved to the octave namespace that already have
octave::interpreter& in the argument list. The new functios in the
octave namespace will be found from outside the namespace even without
the namespace tag so there is no need to deprecate the old name.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 18 Jan 2022 13:27:18 -0500 |
parents | 7ad57680a310 |
children | b15e026c5a31 ffed0ae35eda |
files | libinterp/mk-builtins.pl |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/mk-builtins.pl Tue Jan 18 13:13:33 2022 -0500 +++ b/libinterp/mk-builtins.pl Tue Jan 18 13:27:18 2022 -0500 @@ -152,18 +152,6 @@ print "\n#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)\n\n"; - foreach $name (sort (@method_names)) - { - print "OCTAVE_DEPRECATED (7, \"use 'octave::$name' instead\") -inline octave_value_list -$name (octave::interpreter& interp, const octave_value_list& args = octave_value_list (), int nargout = 0) -{ - return octave::$name (interp, args, nargout); -} - -"; - } - foreach $name (sort (@fcn_names)) { print "OCTAVE_DEPRECATED (7, \"use 'octave::$name' instead\")