diff libinterp/corefcn/oct-stream.cc @ 32857:00e493a27de2

Deprecate lo_ieee_ functions that are part of C99 or C++11. * lo-ieee.h (__lo_ieee_isnan, __lo_ieee_isfinite, __lo_ieee_isinf, __lo_ieee_signbit, __lo_ieee_float_isnan, __lo_ieee_float_isfinite, __lo_ieee_float_isinf, __lo_ieee_float_signbit): Mark functions as deprecated. * lo-ieee.cc, mex.cc, oct-stream.cc, pr-output.cc, ov-complex.h, ov-float.h, ov-flt-complex.h, ov-scalar.h, dSparse.h, Faddeeva.cc, lo-mappers.cc, oct-norm.cc, randgamma.cc, randpoisson.cc, lo-utils.cc: Avoid using deprecated functions.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 25 Jan 2024 20:15:37 +0100
parents f53ac65ffba6
children fc467370dacb
line wrap: on
line diff
--- a/libinterp/corefcn/oct-stream.cc	Fri Jan 26 08:40:11 2024 +0100
+++ b/libinterp/corefcn/oct-stream.cc	Thu Jan 25 20:15:37 2024 +0100
@@ -110,7 +110,7 @@
 
   if (! conv_err)
     {
-      if (! lo_ieee_isnan (dval))
+      if (! math::isnan (dval))
         {
           int ival = math::nint (dval);
 
@@ -131,7 +131,7 @@
 {
   octave_idx_type retval = -1;
 
-  if (lo_ieee_isnan (d))
+  if (math::isnan (d))
     ::error ("%s: NaN invalid as size specification", who.c_str ());
 
   if (math::isinf (d))
@@ -5817,7 +5817,7 @@
         }
 
       const char *tval;
-      if (lo_ieee_isinf (dval))
+      if (math::isinf (dval))
         {
           if (elt->flags.find ('+') != std::string::npos)
             tval = (dval < 0 ? "-Inf" : "+Inf");