Mercurial > octave
comparison libinterp/corefcn/pr-output.cc @ 23619:6ed4d6e306ba
maint: Deprecate is_NA and replace with isna.
* lo-mappers.h (is_NA): Use OCTAVE_DEPRECATED macro around function.
* lo-mappers.h (isna): New function.
* lo-mappers.h (octave_is_NA): Change message for this already deprecated
function to say that replacement is octave::math::isna.
* pr-output.cc, ov-complex.cc, ov-cx-mat.cc, ov-cx-sparse.cc, ov-float.cc,
ov-flt-complex.cc, ov-flt-cx-mat.cc, ov-flt-re-mat.cc, ov-re-mat.cc,
ov-re-sparse.cc, ov-scalar.cc, lo-mappers.cc:
Replace instances of is_NA with isna.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 16 Jun 2017 11:50:50 -0700 |
parents | f6c5db0a02e7 |
children | bd77ab816e43 |
comparison
equal
deleted
inserted
replaced
23618:5e0acf41a9e1 | 23619:6ed4d6e306ba |
---|---|
1497 for (int i = sizeof (double) - 1; i >= 0; i--) | 1497 for (int i = sizeof (double) - 1; i >= 0; i--) |
1498 PRINT_CHAR_BITS (os, tmp.i[i]); | 1498 PRINT_CHAR_BITS (os, tmp.i[i]); |
1499 } | 1499 } |
1500 } | 1500 } |
1501 } | 1501 } |
1502 else if (octave::math::is_NA (d)) | 1502 else if (octave::math::isna (d)) |
1503 { | 1503 { |
1504 octave_preserve_stream_state stream_state (os); | 1504 octave_preserve_stream_state stream_state (os); |
1505 | 1505 |
1506 if (fw > 0) | 1506 if (fw > 0) |
1507 os << std::setw (fw) << "NA"; | 1507 os << std::setw (fw) << "NA"; |