Mercurial > octave
changeset 31462:fcbbb498d4af
mk-builtins.pl: Don't generate deprecated inline functions without octave:: namespace qualifier.
* mk-builtins.pl: Remove Perl code to generate OCTAVE_DEPRECATED instances for
inline functions not qualified with octave:: namespace.
* oct-conf-post-public.in.h: Correct comment about updating macros when C++2014
is adopted by Octave.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 16 Nov 2022 14:51:32 -0800 |
parents | 7dcd8e3a705d |
children | 6ea81caebab0 |
files | libinterp/mk-builtins.pl oct-conf-post-public.in.h |
diffstat | 2 files changed, 1 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/mk-builtins.pl Wed Nov 16 15:34:00 2022 -0500 +++ b/libinterp/mk-builtins.pl Wed Nov 16 14:51:32 2022 -0800 @@ -150,23 +150,6 @@ print "\nOCTAVE_NAMESPACE_END\n"; - print "\n#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)\n\n"; - - foreach $name (sort (@fcn_names)) - { - print "OCTAVE_DEPRECATED (7, \"use 'octave::$name' instead\") -inline octave_value_list -$name (const octave_value_list& args = octave_value_list (), int nargout = 0) -{ - return octave::$name (args, nargout); -} - -"; - } - - ## end OCTAVE_PROVIDE_DEPRECATED_SYMBOLS block - print "\n\n#endif\n"; - print "\n#endif\n"; } elsif ($make_source)
--- a/oct-conf-post-public.in.h Wed Nov 16 15:34:00 2022 -0500 +++ b/oct-conf-post-public.in.h Wed Nov 16 14:51:32 2022 -0800 @@ -39,7 +39,7 @@ OCTAVE_ATTRIBUTE_NAME in place of vendor specific attribute mechanisms. As compilers evolve, the underlying implementation can be changed with the macro definitions below. FIXME: Update macros - to use C++ standard attribute syntax when Octave moves to C++ 2011 + to use C++ standard attribute syntax when Octave moves to C++ 2014 standard. */ #if defined (__GNUC__)