From 3dfc1e3b8b315a36de3ad6b9f0a66661908a41ca Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Tue, 12 Mar 2019 00:05:59 +0100 Subject: [PATCH] Switch to relative includes. Fixes #91. --- CMakeLists.txt | 2 +- Changelog | 22 ++++++++++++++-------- double-conversion/bignum-dtoa.cc | 6 +++--- double-conversion/bignum-dtoa.h | 2 +- double-conversion/bignum.cc | 4 ++-- double-conversion/bignum.h | 2 +- double-conversion/cached-powers.cc | 4 ++-- double-conversion/cached-powers.h | 2 +- double-conversion/diy-fp.cc | 4 ++-- double-conversion/diy-fp.h | 2 +- double-conversion/double-conversion.cc | 16 ++++++++-------- double-conversion/double-conversion.h | 2 +- double-conversion/fast-dtoa.cc | 8 ++++---- double-conversion/fast-dtoa.h | 2 +- double-conversion/fixed-dtoa.cc | 4 ++-- double-conversion/fixed-dtoa.h | 2 +- double-conversion/ieee.h | 2 +- double-conversion/strtod.cc | 8 ++++---- double-conversion/strtod.h | 2 +- 19 files changed, 51 insertions(+), 45 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fbabf8b..d9f4be8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.0) -project(double-conversion VERSION 3.1.3) +project(double-conversion VERSION 3.1.4) set(headers double-conversion/bignum.h diff --git a/Changelog b/Changelog index e80a7229..943db268 100644 --- a/Changelog +++ b/Changelog @@ -1,18 +1,24 @@ +2019-03-11: + Use relative includes in the library. This shouldn't have any visible effect + for consumers of the library. + + Update version number. + 2019-03-06: -Fix typo in test. -Update version number. + Fix typo in test. + Update version number. 2019-03-03: -Fix separator characters when they they don't fit into 8 bits. -Update version number. + Fix separator characters when they they don't fit into 8 bits. + Update version number. 2019-02-16: -Check correctly for _MSC_VER. -Patch by Ben Boeckel + Check correctly for _MSC_VER. + Patch by Ben Boeckel 2019-01-17: -Allow the library to be compiled for Emscripten. -Patch by Tim Paine. + Allow the library to be compiled for Emscripten. + Patch by Tim Paine. 2018-09-15: Update version numbers. This also updates the shared-library version number. diff --git a/double-conversion/bignum-dtoa.cc b/double-conversion/bignum-dtoa.cc index 526f96ed..d99ac2aa 100644 --- a/double-conversion/bignum-dtoa.cc +++ b/double-conversion/bignum-dtoa.cc @@ -27,10 +27,10 @@ #include -#include +#include "bignum-dtoa.h" -#include -#include +#include "bignum.h" +#include "ieee.h" namespace double_conversion { diff --git a/double-conversion/bignum-dtoa.h b/double-conversion/bignum-dtoa.h index 9d15ce3d..34b96199 100644 --- a/double-conversion/bignum-dtoa.h +++ b/double-conversion/bignum-dtoa.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_BIGNUM_DTOA_H_ #define DOUBLE_CONVERSION_BIGNUM_DTOA_H_ -#include +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/bignum.cc b/double-conversion/bignum.cc index a7bc86d0..d077eef3 100644 --- a/double-conversion/bignum.cc +++ b/double-conversion/bignum.cc @@ -25,8 +25,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#include -#include +#include "bignum.h" +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/bignum.h b/double-conversion/bignum.h index 238a3511..7c289fa2 100644 --- a/double-conversion/bignum.h +++ b/double-conversion/bignum.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_BIGNUM_H_ #define DOUBLE_CONVERSION_BIGNUM_H_ -#include +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/cached-powers.cc b/double-conversion/cached-powers.cc index 6f771e9c..8ab281a1 100644 --- a/double-conversion/cached-powers.cc +++ b/double-conversion/cached-powers.cc @@ -29,9 +29,9 @@ #include #include -#include +#include "utils.h" -#include +#include "cached-powers.h" namespace double_conversion { diff --git a/double-conversion/cached-powers.h b/double-conversion/cached-powers.h index eabff4a1..61a50614 100644 --- a/double-conversion/cached-powers.h +++ b/double-conversion/cached-powers.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_CACHED_POWERS_H_ #define DOUBLE_CONVERSION_CACHED_POWERS_H_ -#include +#include "diy-fp.h" namespace double_conversion { diff --git a/double-conversion/diy-fp.cc b/double-conversion/diy-fp.cc index 82b0d08a..ddd1891b 100644 --- a/double-conversion/diy-fp.cc +++ b/double-conversion/diy-fp.cc @@ -26,8 +26,8 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#include -#include +#include "diy-fp.h" +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/diy-fp.h b/double-conversion/diy-fp.h index e2011d43..2edf3467 100644 --- a/double-conversion/diy-fp.h +++ b/double-conversion/diy-fp.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_DIY_FP_H_ #define DOUBLE_CONVERSION_DIY_FP_H_ -#include +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/double-conversion.cc b/double-conversion/double-conversion.cc index 388cb39d..d5a04f6c 100644 --- a/double-conversion/double-conversion.cc +++ b/double-conversion/double-conversion.cc @@ -29,14 +29,14 @@ #include #include -#include - -#include -#include -#include -#include -#include -#include +#include "double-conversion.h" + +#include "bignum-dtoa.h" +#include "fast-dtoa.h" +#include "fixed-dtoa.h" +#include "ieee.h" +#include "strtod.h" +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/double-conversion.h b/double-conversion/double-conversion.h index 7495d17a..6dbc0997 100644 --- a/double-conversion/double-conversion.h +++ b/double-conversion/double-conversion.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_DOUBLE_CONVERSION_H_ #define DOUBLE_CONVERSION_DOUBLE_CONVERSION_H_ -#include +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/fast-dtoa.cc b/double-conversion/fast-dtoa.cc index e5c22229..61350383 100644 --- a/double-conversion/fast-dtoa.cc +++ b/double-conversion/fast-dtoa.cc @@ -25,11 +25,11 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#include +#include "fast-dtoa.h" -#include -#include -#include +#include "cached-powers.h" +#include "diy-fp.h" +#include "ieee.h" namespace double_conversion { diff --git a/double-conversion/fast-dtoa.h b/double-conversion/fast-dtoa.h index ac4317c0..5f1e8eee 100644 --- a/double-conversion/fast-dtoa.h +++ b/double-conversion/fast-dtoa.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_FAST_DTOA_H_ #define DOUBLE_CONVERSION_FAST_DTOA_H_ -#include +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/fixed-dtoa.cc b/double-conversion/fixed-dtoa.cc index 8c111aca..0f989bce 100644 --- a/double-conversion/fixed-dtoa.cc +++ b/double-conversion/fixed-dtoa.cc @@ -27,8 +27,8 @@ #include -#include -#include +#include "fixed-dtoa.h" +#include "ieee.h" namespace double_conversion { diff --git a/double-conversion/fixed-dtoa.h b/double-conversion/fixed-dtoa.h index a9436fc9..3bdd08e2 100644 --- a/double-conversion/fixed-dtoa.h +++ b/double-conversion/fixed-dtoa.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_FIXED_DTOA_H_ #define DOUBLE_CONVERSION_FIXED_DTOA_H_ -#include +#include "utils.h" namespace double_conversion { diff --git a/double-conversion/ieee.h b/double-conversion/ieee.h index baaeced3..4a5fe8f9 100644 --- a/double-conversion/ieee.h +++ b/double-conversion/ieee.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_DOUBLE_H_ #define DOUBLE_CONVERSION_DOUBLE_H_ -#include +#include "diy-fp.h" namespace double_conversion { diff --git a/double-conversion/strtod.cc b/double-conversion/strtod.cc index e8cc13f2..a75cf5d9 100644 --- a/double-conversion/strtod.cc +++ b/double-conversion/strtod.cc @@ -28,10 +28,10 @@ #include #include -#include -#include -#include -#include +#include "bignum.h" +#include "cached-powers.h" +#include "ieee.h" +#include "strtod.h" namespace double_conversion { diff --git a/double-conversion/strtod.h b/double-conversion/strtod.h index 32265162..ed0293b8 100644 --- a/double-conversion/strtod.h +++ b/double-conversion/strtod.h @@ -28,7 +28,7 @@ #ifndef DOUBLE_CONVERSION_STRTOD_H_ #define DOUBLE_CONVERSION_STRTOD_H_ -#include +#include "utils.h" namespace double_conversion {