# HG changeset patch # User John W. Eaton # Date 1454869144 18000 # Node ID 2bb4e5a6290db17e6d57a8c16f067dd7f1eccfe9 # Parent 2a81f4b7b254d0acf151ecc057953364f65f7a6d don't include lo-math.h in header files unnecessarily * DASPK.h, DASRT.h, DASSL.h, LSODE.h, Quad.h, oct-time.h: Don't include lo-math.h. * oct-time.cc (octave_time::octave_time (double)): Move definition here, from oct-time.h. diff -r 2a81f4b7b254 -r 2bb4e5a6290d liboctave/numeric/DASPK.h --- a/liboctave/numeric/DASPK.h Sun Feb 07 13:17:28 2016 -0500 +++ b/liboctave/numeric/DASPK.h Sun Feb 07 13:19:04 2016 -0500 @@ -26,7 +26,6 @@ #include #include "DASPK-opts.h" -#include "lo-math.h" class OCTAVE_API diff -r 2a81f4b7b254 -r 2bb4e5a6290d liboctave/numeric/DASRT.h --- a/liboctave/numeric/DASRT.h Sun Feb 07 13:17:28 2016 -0500 +++ b/liboctave/numeric/DASRT.h Sun Feb 07 13:19:04 2016 -0500 @@ -26,7 +26,6 @@ #include #include "DASRT-opts.h" -#include "lo-math.h" class DASRT_result diff -r 2a81f4b7b254 -r 2bb4e5a6290d liboctave/numeric/DASSL.h --- a/liboctave/numeric/DASSL.h Sun Feb 07 13:17:28 2016 -0500 +++ b/liboctave/numeric/DASSL.h Sun Feb 07 13:19:04 2016 -0500 @@ -26,7 +26,6 @@ #include #include "DASSL-opts.h" -#include "lo-math.h" class OCTAVE_API diff -r 2a81f4b7b254 -r 2bb4e5a6290d liboctave/numeric/LSODE.h --- a/liboctave/numeric/LSODE.h Sun Feb 07 13:17:28 2016 -0500 +++ b/liboctave/numeric/LSODE.h Sun Feb 07 13:19:04 2016 -0500 @@ -26,7 +26,6 @@ #include #include "LSODE-opts.h" -#include "lo-math.h" class OCTAVE_API diff -r 2a81f4b7b254 -r 2bb4e5a6290d liboctave/numeric/Quad.h --- a/liboctave/numeric/Quad.h Sun Feb 07 13:17:28 2016 -0500 +++ b/liboctave/numeric/Quad.h Sun Feb 07 13:19:04 2016 -0500 @@ -27,7 +27,6 @@ #include "dColVector.h" #include "fColVector.h" -#include "lo-math.h" typedef double (*integrand_fcn) (double x); typedef float (*float_integrand_fcn) (float x); diff -r 2a81f4b7b254 -r 2bb4e5a6290d liboctave/system/oct-time.cc --- a/liboctave/system/oct-time.cc Sun Feb 07 13:17:28 2016 -0500 +++ b/liboctave/system/oct-time.cc Sun Feb 07 13:19:04 2016 -0500 @@ -40,6 +40,13 @@ #include "oct-locbuf.h" #include "oct-time.h" +octave_time::octave_time (double d) + : ot_unix_time (static_cast (d)), ot_usec (0) +{ + double ip; + ot_usec = static_cast (std::modf (d, &ip) * 1e6); +} + octave_time::octave_time (const octave_base_tm& tm) : ot_unix_time (), ot_usec () { diff -r 2a81f4b7b254 -r 2bb4e5a6290d liboctave/system/oct-time.h --- a/liboctave/system/oct-time.h Sun Feb 07 13:17:28 2016 -0500 +++ b/liboctave/system/oct-time.h Sun Feb 07 13:19:04 2016 -0500 @@ -26,8 +26,6 @@ #include #include -#include "lo-math.h" - class octave_base_tm; class @@ -64,12 +62,7 @@ ot_unix_time += extra; } - octave_time (double d) - : ot_unix_time (static_cast (d)), ot_usec (0) - { - double ip; - ot_usec = static_cast (std::modf (d, &ip) * 1e6); - } + octave_time (double d); octave_time (const octave_base_tm& tm);