Mercurial > octave
diff libinterp/corefcn/max.cc @ 30896:c9788d7f6e65
maint: Use "fcn" as preferred abbreviation for "function" in libinterp/.
* __eigs__.cc, bsxfun.cc, cellfun.cc, daspk.cc, dasrt.cc, dassl.cc, data.cc,
debug.cc, error.cc, graphics.cc, graphics.in.h, gzfstream.h, ls-hdf5.cc,
lsode.cc, max.cc, oct-opengl.h, quad.cc, strfns.cc, utils.cc, utils.h,
variables.cc, __ode15__.cc, gzip.cc, cdef-manager.cc, ov-fcn-handle.cc,
ov-java.cc, ov-usr-fcn.cc, bp-table.cc, bp-table.h, lex.h, lex.ll,
oct-parse.yy, pt-eval.cc:
Replace "func", "fun", "fn" in documentation and variable names with "fcn".
author | Rik <rik@octave.org> |
---|---|
date | Tue, 05 Apr 2022 08:33:58 -0700 |
parents | 32d2b6604a9f |
children | e88a07dec498 |
line wrap: on
line diff
--- a/libinterp/corefcn/max.cc Tue Apr 05 01:06:00 2022 -0400 +++ b/libinterp/corefcn/max.cc Tue Apr 05 08:33:58 2022 -0700 @@ -248,7 +248,7 @@ octave_value_list retval (nargout > 1 ? 2 : 1); - const char *func = (ismin ? "min" : "max"); + const char *fcn = (ismin ? "min" : "max"); if (nargin == 3 || nargin == 1) { @@ -259,10 +259,10 @@ dim = args(2).int_value (true) - 1; if (dim < 0) - error ("%s: DIM must be a valid dimension", func); + error ("%s: DIM must be a valid dimension", fcn); if (! args(1).isempty ()) - warning ("%s: second argument is ignored", func); + warning ("%s: second argument is ignored", fcn); } switch (arg.builtin_type ()) @@ -348,7 +348,7 @@ break; default: - err_wrong_type_arg (func, arg); + err_wrong_type_arg (fcn, arg); } } else @@ -425,7 +425,7 @@ // break; default: - error ("%s: cannot compute %s (%s, %s)", func, func, + error ("%s: cannot compute %s (%s, %s)", fcn, fcn, argx.type_name ().c_str (), argy.type_name ().c_str ()); } @@ -925,7 +925,7 @@ if (nargin < 1 || nargin > 2) print_usage (); - const char *func = (ismin ? "cummin" : "cummax"); + const char *fcn = (ismin ? "cummin" : "cummax"); octave_value arg = args(0); int dim = -1; @@ -934,7 +934,7 @@ dim = args(1).int_value (true) - 1; if (dim < 0) - error ("%s: DIM must be a valid dimension", func); + error ("%s: DIM must be a valid dimension", fcn); } octave_value_list retval; @@ -985,7 +985,7 @@ break; default: - err_wrong_type_arg (func, arg); + err_wrong_type_arg (fcn, arg); } return retval;