Mercurial > octave
diff libinterp/corefcn/pr-output.cc @ 21942:aab79a1885cc
limit gnulib headers to liboctave/wrappers directory
* libinterp/module.mk, liboctave/module.mk, src/module.mk,
libgui/src/module.mk: Don't include libgnu directory in lists of
include directories.
* c-file-ptr-stream.cc, data.cc, dirfns.cc, file-io.cc,
ft-text-renderer.cc, gcd.cc, gl2ps-print.cc, graphics.cc, mex.cc,
oct-fstrm.cc, oct-procbuf.cc, oct-tex-lexer.in.ll,
oct-tex-parser.in.yy, pr-output.cc, quadcc.cc, rand.cc, toplev.cc,
utils.cc, __delaunayn__.cc, __init_fltk__.cc, __voronoi__.cc,
convhulln.cc, ov-cell.cc, ov-float.cc, ov-scalar.cc, lex.ll,
oct-parse.in.yy, Range.cc, idx-vector.cc, Faddeeva/Faddeeva.cc,
lo-mappers.cc, lo-specfun.cc, randgamma.cc, randmtzig.cc,
randpoisson.cc, dir-ops.cc, file-ops.cc, file-stat.cc, oct-env.cc,
oct-syscalls.cc, oct-time.cc, oct-uname.cc, cmd-edit.cc, cmd-hist.cc,
lo-utils.cc, oct-inttypes.cc, oct-shlib.cc, sparse-util.cc,
mkoctfile.in.cc: Use std:: instead of gnulib:: namespace.
* oct-conf-post.in.h: Don't define GNULIB_NAMESPACE.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 17 Jun 2016 13:45:04 -0400 |
parents | 2aef506f3fec |
children | 112b20240c87 |
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc Fri Jun 17 11:00:11 2016 -0400 +++ b/libinterp/corefcn/pr-output.cc Fri Jun 17 13:45:04 2016 -0400 @@ -242,7 +242,7 @@ if (x != 0) { double absval = (x < 0.0 ? -x : x); - int logabsval = static_cast<int> (gnulib::floor (log10 (absval))); + int logabsval = static_cast<int> (std::floor (log10 (absval))); // Avoid using modulo function with negative arguments for // portability. See extended comment at calc_scale_exp if (logabsval < 0.0) @@ -258,7 +258,7 @@ { return 1 + (print_eng ? engineering_exponent (x) - : static_cast<int> (gnulib::floor (log10 (x)))); + : static_cast<int> (std::floor (log10 (x)))); } class @@ -3262,7 +3262,7 @@ { int new_digits = static_cast<int> - (gnulib::floor (log10 (double (abs (nda(i).value ()))) + 1.0)); + (std::floor (log10 (double (abs (nda(i).value ()))) + 1.0)); if (new_digits > digits) digits = new_digits;