Mercurial > octave
comparison libinterp/parse-tree/pt-eval.cc @ 29968:7aa4d8c049e5
eliminate obsolete DEFCONSTFUN and DEFCONSTMETHOD macros
For some time now, DEFCONSTFUN and DEFCONSTMETHOD have been equivalent
to DEFUN and DEFMETHOD so we might as well eliminate them. For now we
will eliminate all handling of them in Octave but leave them as
aliases in defun.h.
* macros.dox: Don't mention DEFCONSTFUN or DEFCONSTMETHOD.
* defun.h (DEFCONSTFUN, DEFCONSTMETHOD): Define as direct aliases of
DEFUN and DEFMETHOD but eliminate documentation for them.
* mk-builtins.pl, mk-doc.pl: Don't handle DEFCONSTFUN or DEFCONSTMETHOD.
* pt-eval.cc (Fend): Define with DEFMETHOD instead of DEFCONSTMETHOD.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 15 Aug 2021 15:15:55 -0400 |
parents | 7d6709900da7 |
children | 75fb18f0469a |
comparison
equal
deleted
inserted
replaced
29967:da1678140f7e | 29968:7aa4d8c049e5 |
---|---|
2232 ref.assign (octave_value::op_asn_eq, octave_value ()); | 2232 ref.assign (octave_value::op_asn_eq, octave_value ()); |
2233 } | 2233 } |
2234 } | 2234 } |
2235 | 2235 |
2236 // END is documented in op-kw-docs. | 2236 // END is documented in op-kw-docs. |
2237 DEFCONSTMETHOD (end, interp, args, , | 2237 DEFMETHOD (end, interp, args, , |
2238 doc: /* -*- texinfo -*- | 2238 doc: /* -*- texinfo -*- |
2239 @deftypefn {} {} end | 2239 @deftypefn {} {} end |
2240 Last element of an array or the end of any @code{for}, @code{parfor}, | 2240 Last element of an array or the end of any @code{for}, @code{parfor}, |
2241 @code{if}, @code{do}, @code{while}, @code{function}, @code{switch}, | 2241 @code{if}, @code{do}, @code{while}, @code{function}, @code{switch}, |
2242 @code{try}, or @code{unwind_protect} block. | 2242 @code{try}, or @code{unwind_protect} block. |
2243 | 2243 |