# HG changeset patch # User jwe # Date 1187987372 0 # Node ID abe21f30e1fe0937f17a97edba5ca283fdb6a6ea # Parent 6c85f7d37e6154775c055e65985d25e1630c70af [project @ 2007-08-24 20:29:32 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -16,9 +16,9 @@ 2007-08-24 John W. Eaton - * mappers.cc (octave_is_NA (int), xisnan (int)): New functions. - (install_mapper_functions): Use them to handle character data in - isna and isnan functions. + * mappers.cc (dummyp): New function. + (install_mapper_functions): Use it to handle character data in + finite, isinf, isna, and isnan functions. * load-path.cc (load_path::do_remove): Call remove_hook function before removing directory from list. diff --git a/src/mappers.cc b/src/mappers.cc --- a/src/mappers.cc +++ b/src/mappers.cc @@ -167,13 +167,7 @@ } static int -octave_is_NA (int) -{ - return 0; -} - -static int -xisnan (int) +xdummyp (int) { return 0; } @@ -352,7 +346,7 @@ see @ref{Linear Algebra}.\n\ @end deftypefn"); - DEFUN_MAPPER (finite, 0, xfinite, xfinite, 0, 0, 0, 0.0, 0.0, 0, 0, + DEFUN_MAPPER (finite, dummyp, xfinite, xfinite, 0, 0, 0, 0.0, 0.0, 0, 0, "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} finite (@var{x})\n\ Return 1 for elements of @var{x} that are finite values and zero\n\ @@ -448,7 +442,7 @@ Return 1 for characters that are decimal digits.\n\ @end deftypefn"); - DEFUN_MAPPER (isinf, 0, xisinf, xisinf, 0, 0, 0, 0.0, 0.0, 0, 0, + DEFUN_MAPPER (isinf, dummyp, xisinf, xisinf, 0, 0, 0, 0.0, 0.0, 0, 0, "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isinf (@var{x})\n\ Return 1 for elements of @var{x} that are infinite and zero\n\ @@ -474,7 +468,7 @@ Return 1 for characters that are lower case letters.\n\ @end deftypefn"); - DEFUN_MAPPER (isna, octave_is_NA, octave_is_NA, octave_is_NA, 0, 0, 0, 0.0, 0.0, 0, 0, + DEFUN_MAPPER (isna, dummyp, octave_is_NA, octave_is_NA, 0, 0, 0, 0.0, 0.0, 0, 0, "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isna (@var{x})\n\ Return 1 for elements of @var{x} that are NA (missing) values and zero\n\ @@ -488,7 +482,7 @@ @end example\n\ @end deftypefn"); - DEFUN_MAPPER (isnan, xisnan, xisnan, xisnan, 0, 0, 0, 0.0, 0.0, 0, 0, + DEFUN_MAPPER (isnan, dummyp, xisnan, xisnan, 0, 0, 0, 0.0, 0.0, 0, 0, "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isnan (@var{x})\n\ Return 1 for elements of @var{x} that are NaN values and zero\n\