From 789986a05bd03935f1c344dc03ffaff36c8e7cdb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 12 May 2021 09:26:23 +0200 Subject: Make ArduinoJson work with MSP430 headers --- include/lib/ArduinoJson/Array/ArrayFunctions.hpp | 2 +- include/lib/ArduinoJson/Array/ArrayImpl.hpp | 4 ++-- include/lib/ArduinoJson/Array/ArrayIterator.hpp | 4 ++-- include/lib/ArduinoJson/Array/ArrayRef.hpp | 6 +++--- include/lib/ArduinoJson/Array/ArrayShortcuts.hpp | 4 ++-- include/lib/ArduinoJson/Array/ElementProxy.hpp | 8 ++++---- include/lib/ArduinoJson/Array/Utilities.hpp | 22 +++++++++++----------- .../lib/ArduinoJson/Collection/CollectionData.hpp | 4 ++-- .../lib/ArduinoJson/Collection/CollectionImpl.hpp | 4 ++-- .../Deserialization/DeserializationError.hpp | 6 +++--- include/lib/ArduinoJson/Deserialization/Filter.hpp | 2 +- .../ArduinoJson/Deserialization/NestingLimit.hpp | 4 ++-- include/lib/ArduinoJson/Deserialization/Reader.hpp | 16 ++++++++-------- .../Deserialization/Readers/RamReader.hpp | 2 +- .../Deserialization/Readers/VariantReader.hpp | 4 ++-- .../ArduinoJson/Deserialization/deserialize.hpp | 10 +++++----- .../lib/ArduinoJson/Document/BasicJsonDocument.hpp | 2 +- .../ArduinoJson/Document/DynamicJsonDocument.hpp | 2 +- include/lib/ArduinoJson/Document/JsonDocument.hpp | 12 ++++++------ .../ArduinoJson/Document/StaticJsonDocument.hpp | 2 +- include/lib/ArduinoJson/Json/EscapeSequence.hpp | 2 +- include/lib/ArduinoJson/Json/JsonDeserializer.hpp | 20 ++++++++++---------- include/lib/ArduinoJson/Json/JsonSerializer.hpp | 8 ++++---- include/lib/ArduinoJson/Json/Latch.hpp | 2 +- .../lib/ArduinoJson/Json/PrettyJsonSerializer.hpp | 8 ++++---- include/lib/ArduinoJson/Json/TextFormatter.hpp | 20 ++++++++++---------- include/lib/ArduinoJson/Json/Utf16.hpp | 2 +- include/lib/ArduinoJson/Json/Utf8.hpp | 2 +- include/lib/ArduinoJson/Memory/Alignment.hpp | 2 +- include/lib/ArduinoJson/Memory/MemoryPool.hpp | 8 ++++---- include/lib/ArduinoJson/Misc/SerializedValue.hpp | 2 +- include/lib/ArduinoJson/Misc/Visitable.hpp | 2 +- .../ArduinoJson/MsgPack/MsgPackDeserializer.hpp | 12 ++++++------ .../lib/ArduinoJson/MsgPack/MsgPackSerializer.hpp | 14 +++++++------- include/lib/ArduinoJson/MsgPack/endianess.hpp | 4 ++-- include/lib/ArduinoJson/MsgPack/ieee754.hpp | 2 +- include/lib/ArduinoJson/Namespace.hpp | 6 +++--- include/lib/ArduinoJson/Numbers/Float.hpp | 4 ++-- include/lib/ArduinoJson/Numbers/FloatParts.hpp | 6 +++--- include/lib/ArduinoJson/Numbers/FloatTraits.hpp | 10 +++++----- include/lib/ArduinoJson/Numbers/Integer.hpp | 4 ++-- .../lib/ArduinoJson/Numbers/arithmeticCompare.hpp | 4 ++-- include/lib/ArduinoJson/Numbers/convertNumber.hpp | 6 +++--- include/lib/ArduinoJson/Numbers/parseNumber.hpp | 16 ++++++++-------- include/lib/ArduinoJson/Object/MemberProxy.hpp | 12 ++++++------ include/lib/ArduinoJson/Object/ObjectFunctions.hpp | 2 +- include/lib/ArduinoJson/Object/ObjectImpl.hpp | 4 ++-- include/lib/ArduinoJson/Object/ObjectIterator.hpp | 4 ++-- include/lib/ArduinoJson/Object/ObjectRef.hpp | 4 ++-- include/lib/ArduinoJson/Object/ObjectShortcuts.hpp | 6 +++--- include/lib/ArduinoJson/Object/Pair.hpp | 4 ++-- include/lib/ArduinoJson/Polyfills/alias_cast.hpp | 2 +- include/lib/ArduinoJson/Polyfills/assert.hpp | 2 +- include/lib/ArduinoJson/Polyfills/ctype.hpp | 2 +- include/lib/ArduinoJson/Polyfills/integer.hpp | 2 +- include/lib/ArduinoJson/Polyfills/math.hpp | 2 +- include/lib/ArduinoJson/Polyfills/mpl/max.hpp | 2 +- include/lib/ArduinoJson/Polyfills/pgmspace.hpp | 6 +++--- .../lib/ArduinoJson/Polyfills/pgmspace_generic.hpp | 4 ++-- include/lib/ArduinoJson/Polyfills/safe_strcmp.hpp | 2 +- include/lib/ArduinoJson/Polyfills/static_array.hpp | 4 ++-- .../Polyfills/type_traits/conditional.hpp | 2 +- .../ArduinoJson/Polyfills/type_traits/declval.hpp | 2 +- .../Polyfills/type_traits/enable_if.hpp | 2 +- .../Polyfills/type_traits/integral_constant.hpp | 2 +- .../ArduinoJson/Polyfills/type_traits/is_array.hpp | 6 +++--- .../Polyfills/type_traits/is_base_of.hpp | 2 +- .../Polyfills/type_traits/is_integral.hpp | 2 +- .../Polyfills/type_traits/remove_const.hpp | 2 +- .../Polyfills/type_traits/remove_reference.hpp | 2 +- .../Serialization/CountingDecorator.hpp | 2 +- include/lib/ArduinoJson/Serialization/Writer.hpp | 12 ++++++------ .../Serialization/Writers/DummyWriter.hpp | 2 +- .../Serialization/Writers/StaticStringWriter.hpp | 2 +- .../Serialization/Writers/StdStringWriter.hpp | 4 ++-- include/lib/ArduinoJson/Serialization/measure.hpp | 2 +- .../lib/ArduinoJson/Serialization/serialize.hpp | 8 ++++---- .../lib/ArduinoJson/StringStorage/StringCopier.hpp | 2 +- .../lib/ArduinoJson/StringStorage/StringMover.hpp | 4 ++-- .../ArduinoJson/StringStorage/StringStorage.hpp | 4 ++-- .../ArduinoJson/Strings/ArduinoStringAdapter.hpp | 6 +++--- .../ArduinoJson/Strings/ConstRamStringAdapter.hpp | 10 +++++----- .../lib/ArduinoJson/Strings/FlashStringAdapter.hpp | 8 ++++---- include/lib/ArduinoJson/Strings/IsString.hpp | 2 +- .../lib/ArduinoJson/Strings/IsWriteableString.hpp | 4 ++-- .../lib/ArduinoJson/Strings/RamStringAdapter.hpp | 6 +++--- .../Strings/SizedFlashStringAdapter.hpp | 8 ++++---- .../ArduinoJson/Strings/SizedRamStringAdapter.hpp | 6 +++--- .../lib/ArduinoJson/Strings/StdStringAdapter.hpp | 6 +++--- include/lib/ArduinoJson/Strings/String.hpp | 6 +++--- include/lib/ArduinoJson/Strings/StringAdapters.hpp | 14 +++++++------- include/lib/ArduinoJson/Variant/ConverterImpl.hpp | 6 +++--- include/lib/ArduinoJson/Variant/SlotFunctions.hpp | 4 ++-- include/lib/ArduinoJson/Variant/VariantCompare.hpp | 12 ++++++------ include/lib/ArduinoJson/Variant/VariantContent.hpp | 6 +++--- include/lib/ArduinoJson/Variant/VariantData.hpp | 10 +++++----- .../lib/ArduinoJson/Variant/VariantFunctions.hpp | 4 ++-- include/lib/ArduinoJson/Variant/VariantImpl.hpp | 12 ++++++------ .../lib/ArduinoJson/Variant/VariantOperators.hpp | 10 +++++----- include/lib/ArduinoJson/Variant/VariantRef.hpp | 20 ++++++++++---------- .../lib/ArduinoJson/Variant/VariantShortcuts.hpp | 4 ++-- include/lib/ArduinoJson/Variant/VariantSlot.hpp | 10 +++++----- include/lib/ArduinoJson/Variant/VariantTag.hpp | 2 +- include/lib/ArduinoJson/Variant/VariantTo.hpp | 2 +- include/lib/ArduinoJson/Variant/Visitor.hpp | 6 +++--- 105 files changed, 299 insertions(+), 299 deletions(-) diff --git a/include/lib/ArduinoJson/Array/ArrayFunctions.hpp b/include/lib/ArduinoJson/Array/ArrayFunctions.hpp index e7cdc4c..8518268 100644 --- a/include/lib/ArduinoJson/Array/ArrayFunctions.hpp +++ b/include/lib/ArduinoJson/Array/ArrayFunctions.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Collection/CollectionData.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Array/ArrayImpl.hpp b/include/lib/ArduinoJson/Array/ArrayImpl.hpp index ae06b20..d8763b7 100644 --- a/include/lib/ArduinoJson/Array/ArrayImpl.hpp +++ b/include/lib/ArduinoJson/Array/ArrayImpl.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Array/ArrayRef.hpp" +#include "lib/ArduinoJson/Object/ObjectRef.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Array/ArrayIterator.hpp b/include/lib/ArduinoJson/Array/ArrayIterator.hpp index fcacc6b..29e92a5 100644 --- a/include/lib/ArduinoJson/Array/ArrayIterator.hpp +++ b/include/lib/ArduinoJson/Array/ArrayIterator.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Variant/SlotFunctions.hpp" +#include "lib/ArduinoJson/Variant/VariantRef.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Array/ArrayRef.hpp b/include/lib/ArduinoJson/Array/ArrayRef.hpp index a991db0..6e899d1 100644 --- a/include/lib/ArduinoJson/Array/ArrayRef.hpp +++ b/include/lib/ArduinoJson/Array/ArrayRef.hpp @@ -4,9 +4,9 @@ #pragma once -#include -#include -#include +#include "lib/ArduinoJson/Array/ArrayFunctions.hpp" +#include "lib/ArduinoJson/Array/ArrayIterator.hpp" +#include "lib/ArduinoJson/Variant/VariantData.hpp" // Returns the size (in bytes) of an array with n elements. // Can be very handy to determine the size of a StaticMemoryPool. diff --git a/include/lib/ArduinoJson/Array/ArrayShortcuts.hpp b/include/lib/ArduinoJson/Array/ArrayShortcuts.hpp index fd26d04..8459322 100644 --- a/include/lib/ArduinoJson/Array/ArrayShortcuts.hpp +++ b/include/lib/ArduinoJson/Array/ArrayShortcuts.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Polyfills/attributes.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" namespace ARDUINOJSON_NAMESPACE { // Forward declarations. diff --git a/include/lib/ArduinoJson/Array/ElementProxy.hpp b/include/lib/ArduinoJson/Array/ElementProxy.hpp index c6062e4..f34395b 100644 --- a/include/lib/ArduinoJson/Array/ElementProxy.hpp +++ b/include/lib/ArduinoJson/Array/ElementProxy.hpp @@ -4,10 +4,10 @@ #pragma once -#include -#include -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Variant/VariantOperators.hpp" +#include "lib/ArduinoJson/Variant/VariantShortcuts.hpp" +#include "lib/ArduinoJson/Variant/VariantTo.hpp" #ifdef _MSC_VER #pragma warning(push) diff --git a/include/lib/ArduinoJson/Array/Utilities.hpp b/include/lib/ArduinoJson/Array/Utilities.hpp index 619b91d..d2cf4bf 100644 --- a/include/lib/ArduinoJson/Array/Utilities.hpp +++ b/include/lib/ArduinoJson/Array/Utilities.hpp @@ -4,24 +4,24 @@ #pragma once -#include -#include -#include +#include "lib/ArduinoJson/Array/ArrayRef.hpp" +#include "lib/ArduinoJson/Document/JsonDocument.hpp" +#include "lib/ArduinoJson/Variant/Visitor.hpp" namespace ARDUINOJSON_NAMESPACE { // Copy a 1D array to a JsonArray -template +template inline typename enable_if::value && !is_base_of::value, bool>::type -copyArray(T (&src)[N], const TDestination& dst) { - return copyArray(src, N, dst); +copyArray(T (&src)[TN], const TDestination& dst) { + return copyArray(src, TN, dst); } // Copy a 1D array to a JsonDocument -template -inline bool copyArray(T (&src)[N], JsonDocument& dst) { +template +inline bool copyArray(T (&src)[TN], JsonDocument& dst) { return copyArray(src, dst.to()); } @@ -109,10 +109,10 @@ class ArrayCopier2D : public Visitor { }; // Copy a JsonArray to a 1D array -template +template inline typename enable_if::value, size_t>::type copyArray( - const TSource& src, T (&dst)[N]) { - return copyArray(src, dst, N); + const TSource& src, T (&dst)[TN]) { + return copyArray(src, dst, TN); } // Copy a JsonArray to a 1D array diff --git a/include/lib/ArduinoJson/Collection/CollectionData.hpp b/include/lib/ArduinoJson/Collection/CollectionData.hpp index d2bca45..2e9f82b 100644 --- a/include/lib/ArduinoJson/Collection/CollectionData.hpp +++ b/include/lib/ArduinoJson/Collection/CollectionData.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Namespace.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" #include // size_t diff --git a/include/lib/ArduinoJson/Collection/CollectionImpl.hpp b/include/lib/ArduinoJson/Collection/CollectionImpl.hpp index 49a24be..8f96a78 100644 --- a/include/lib/ArduinoJson/Collection/CollectionImpl.hpp +++ b/include/lib/ArduinoJson/Collection/CollectionImpl.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Collection/CollectionData.hpp" +#include "lib/ArduinoJson/Variant/VariantData.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Deserialization/DeserializationError.hpp b/include/lib/ArduinoJson/Deserialization/DeserializationError.hpp index 7b61711..15fafc1 100644 --- a/include/lib/ArduinoJson/Deserialization/DeserializationError.hpp +++ b/include/lib/ArduinoJson/Deserialization/DeserializationError.hpp @@ -4,9 +4,9 @@ #pragma once -#include -#include -#include +#include "lib/ArduinoJson/Namespace.hpp" +#include "lib/ArduinoJson/Polyfills/preprocessor.hpp" +#include "lib/ArduinoJson/Polyfills/static_array.hpp" #if ARDUINOJSON_ENABLE_STD_STREAM #include diff --git a/include/lib/ArduinoJson/Deserialization/Filter.hpp b/include/lib/ArduinoJson/Deserialization/Filter.hpp index 7ea3078..7426d3b 100644 --- a/include/lib/ArduinoJson/Deserialization/Filter.hpp +++ b/include/lib/ArduinoJson/Deserialization/Filter.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Deserialization/NestingLimit.hpp b/include/lib/ArduinoJson/Deserialization/NestingLimit.hpp index 06964b4..687b1ba 100644 --- a/include/lib/ArduinoJson/Deserialization/NestingLimit.hpp +++ b/include/lib/ArduinoJson/Deserialization/NestingLimit.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Namespace.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Deserialization/Reader.hpp b/include/lib/ArduinoJson/Deserialization/Reader.hpp index e965c82..7b590ee 100644 --- a/include/lib/ArduinoJson/Deserialization/Reader.hpp +++ b/include/lib/ArduinoJson/Deserialization/Reader.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" #include // for size_t @@ -35,22 +35,22 @@ struct BoundedReader { }; } // namespace ARDUINOJSON_NAMESPACE -#include -#include -#include +#include "lib/ArduinoJson/Deserialization/Readers/IteratorReader.hpp" +#include "lib/ArduinoJson/Deserialization/Readers/RamReader.hpp" +#include "lib/ArduinoJson/Deserialization/Readers/VariantReader.hpp" #if ARDUINOJSON_ENABLE_ARDUINO_STREAM -#include +#include "lib/ArduinoJson/Deserialization/Readers/ArduinoStreamReader.hpp" #endif #if ARDUINOJSON_ENABLE_ARDUINO_STRING -#include +#include "lib/ArduinoJson/Deserialization/Readers/ArduinoStringReader.hpp" #endif #if ARDUINOJSON_ENABLE_PROGMEM -#include +#include "lib/ArduinoJson/Deserialization/Readers/FlashReader.hpp" #endif #if ARDUINOJSON_ENABLE_STD_STREAM -#include +#include "lib/ArduinoJson/Deserialization/Readers/StdStreamReader.hpp" #endif diff --git a/include/lib/ArduinoJson/Deserialization/Readers/RamReader.hpp b/include/lib/ArduinoJson/Deserialization/Readers/RamReader.hpp index 67cf682..7936049 100644 --- a/include/lib/ArduinoJson/Deserialization/Readers/RamReader.hpp +++ b/include/lib/ArduinoJson/Deserialization/Readers/RamReader.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Deserialization/Readers/VariantReader.hpp b/include/lib/ArduinoJson/Deserialization/Readers/VariantReader.hpp index e56e262..76d21b5 100644 --- a/include/lib/ArduinoJson/Deserialization/Readers/VariantReader.hpp +++ b/include/lib/ArduinoJson/Deserialization/Readers/VariantReader.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Object/MemberProxy.hpp" +#include "lib/ArduinoJson/Variant/VariantRef.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Deserialization/deserialize.hpp b/include/lib/ArduinoJson/Deserialization/deserialize.hpp index 2329542..af0f081 100644 --- a/include/lib/ArduinoJson/Deserialization/deserialize.hpp +++ b/include/lib/ArduinoJson/Deserialization/deserialize.hpp @@ -4,11 +4,11 @@ #pragma once -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Deserialization/DeserializationError.hpp" +#include "lib/ArduinoJson/Deserialization/Filter.hpp" +#include "lib/ArduinoJson/Deserialization/NestingLimit.hpp" +#include "lib/ArduinoJson/Deserialization/Reader.hpp" +#include "lib/ArduinoJson/StringStorage/StringStorage.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Document/BasicJsonDocument.hpp b/include/lib/ArduinoJson/Document/BasicJsonDocument.hpp index 5c85d8a..3818d67 100644 --- a/include/lib/ArduinoJson/Document/BasicJsonDocument.hpp +++ b/include/lib/ArduinoJson/Document/BasicJsonDocument.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Document/JsonDocument.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Document/DynamicJsonDocument.hpp b/include/lib/ArduinoJson/Document/DynamicJsonDocument.hpp index de6f411..912cf1d 100644 --- a/include/lib/ArduinoJson/Document/DynamicJsonDocument.hpp +++ b/include/lib/ArduinoJson/Document/DynamicJsonDocument.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Document/BasicJsonDocument.hpp" #include // malloc, free diff --git a/include/lib/ArduinoJson/Document/JsonDocument.hpp b/include/lib/ArduinoJson/Document/JsonDocument.hpp index d67d934..721cc1c 100644 --- a/include/lib/ArduinoJson/Document/JsonDocument.hpp +++ b/include/lib/ArduinoJson/Document/JsonDocument.hpp @@ -4,12 +4,12 @@ #pragma once -#include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Array/ElementProxy.hpp" +#include "lib/ArduinoJson/Memory/MemoryPool.hpp" +#include "lib/ArduinoJson/Object/MemberProxy.hpp" +#include "lib/ArduinoJson/Object/ObjectRef.hpp" +#include "lib/ArduinoJson/Variant/VariantRef.hpp" +#include "lib/ArduinoJson/Variant/VariantTo.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Document/StaticJsonDocument.hpp b/include/lib/ArduinoJson/Document/StaticJsonDocument.hpp index fbbadd4..db12bcb 100644 --- a/include/lib/ArduinoJson/Document/StaticJsonDocument.hpp +++ b/include/lib/ArduinoJson/Document/StaticJsonDocument.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Document/JsonDocument.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Json/EscapeSequence.hpp b/include/lib/ArduinoJson/Json/EscapeSequence.hpp index 811e825..39f1756 100644 --- a/include/lib/ArduinoJson/Json/EscapeSequence.hpp +++ b/include/lib/ArduinoJson/Json/EscapeSequence.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Json/JsonDeserializer.hpp b/include/lib/ArduinoJson/Json/JsonDeserializer.hpp index 1a07be8..6108d50 100644 --- a/include/lib/ArduinoJson/Json/JsonDeserializer.hpp +++ b/include/lib/ArduinoJson/Json/JsonDeserializer.hpp @@ -4,16 +4,16 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Deserialization/deserialize.hpp" +#include "lib/ArduinoJson/Json/EscapeSequence.hpp" +#include "lib/ArduinoJson/Json/Latch.hpp" +#include "lib/ArduinoJson/Json/Utf16.hpp" +#include "lib/ArduinoJson/Json/Utf8.hpp" +#include "lib/ArduinoJson/Memory/MemoryPool.hpp" +#include "lib/ArduinoJson/Numbers/parseNumber.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Variant/VariantData.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Json/JsonSerializer.hpp b/include/lib/ArduinoJson/Json/JsonSerializer.hpp index 5cb9aa2..f513bcb 100644 --- a/include/lib/ArduinoJson/Json/JsonSerializer.hpp +++ b/include/lib/ArduinoJson/Json/JsonSerializer.hpp @@ -4,10 +4,10 @@ #pragma once -#include -#include -#include -#include +#include "lib/ArduinoJson/Json/TextFormatter.hpp" +#include "lib/ArduinoJson/Misc/Visitable.hpp" +#include "lib/ArduinoJson/Serialization/measure.hpp" +#include "lib/ArduinoJson/Serialization/serialize.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Json/Latch.hpp b/include/lib/ArduinoJson/Json/Latch.hpp index aef1fe3..bb41419 100644 --- a/include/lib/ArduinoJson/Json/Latch.hpp +++ b/include/lib/ArduinoJson/Json/Latch.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Polyfills/assert.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Json/PrettyJsonSerializer.hpp b/include/lib/ArduinoJson/Json/PrettyJsonSerializer.hpp index dbb0c17..c33a659 100644 --- a/include/lib/ArduinoJson/Json/PrettyJsonSerializer.hpp +++ b/include/lib/ArduinoJson/Json/PrettyJsonSerializer.hpp @@ -4,10 +4,10 @@ #pragma once -#include -#include -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Json/JsonSerializer.hpp" +#include "lib/ArduinoJson/Serialization/measure.hpp" +#include "lib/ArduinoJson/Serialization/serialize.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Json/TextFormatter.hpp b/include/lib/ArduinoJson/Json/TextFormatter.hpp index 18694f1..1708bbd 100644 --- a/include/lib/ArduinoJson/Json/TextFormatter.hpp +++ b/include/lib/ArduinoJson/Json/TextFormatter.hpp @@ -7,13 +7,13 @@ #include #include // for strlen -#include -#include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Json/EscapeSequence.hpp" +#include "lib/ArduinoJson/Numbers/FloatParts.hpp" +#include "lib/ArduinoJson/Numbers/Integer.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" +#include "lib/ArduinoJson/Polyfills/attributes.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Serialization/CountingDecorator.hpp" namespace ARDUINOJSON_NAMESPACE { @@ -145,9 +145,9 @@ class TextFormatter { static_cast(end - begin)); } - template - void writeRaw(const char (&s)[N]) { - _writer.write(reinterpret_cast(s), N - 1); + template + void writeRaw(const char (&s)[TN]) { + _writer.write(reinterpret_cast(s), TN - 1); } void writeRaw(char c) { _writer.write(static_cast(c)); diff --git a/include/lib/ArduinoJson/Json/Utf16.hpp b/include/lib/ArduinoJson/Json/Utf16.hpp index 4e2750f..83b3bc7 100644 --- a/include/lib/ArduinoJson/Json/Utf16.hpp +++ b/include/lib/ArduinoJson/Json/Utf16.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" #include // uint16_t, uint32_t diff --git a/include/lib/ArduinoJson/Json/Utf8.hpp b/include/lib/ArduinoJson/Json/Utf8.hpp index a30f77a..cc60f76 100644 --- a/include/lib/ArduinoJson/Json/Utf8.hpp +++ b/include/lib/ArduinoJson/Json/Utf8.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Memory/Alignment.hpp b/include/lib/ArduinoJson/Memory/Alignment.hpp index bf16798..e1fe4c2 100644 --- a/include/lib/ArduinoJson/Memory/Alignment.hpp +++ b/include/lib/ArduinoJson/Memory/Alignment.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" #include // size_t diff --git a/include/lib/ArduinoJson/Memory/MemoryPool.hpp b/include/lib/ArduinoJson/Memory/MemoryPool.hpp index 49debf8..d2c8926 100644 --- a/include/lib/ArduinoJson/Memory/MemoryPool.hpp +++ b/include/lib/ArduinoJson/Memory/MemoryPool.hpp @@ -4,10 +4,10 @@ #pragma once -#include -#include -#include -#include +#include "lib/ArduinoJson/Memory/Alignment.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" +#include "lib/ArduinoJson/Polyfills/mpl/max.hpp" +#include "lib/ArduinoJson/Variant/VariantSlot.hpp" #include // memmove diff --git a/include/lib/ArduinoJson/Misc/SerializedValue.hpp b/include/lib/ArduinoJson/Misc/SerializedValue.hpp index 30173bf..b285e0a 100644 --- a/include/lib/ArduinoJson/Misc/SerializedValue.hpp +++ b/include/lib/ArduinoJson/Misc/SerializedValue.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Strings/StringAdapters.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Misc/Visitable.hpp b/include/lib/ArduinoJson/Misc/Visitable.hpp index f25d12f..f2eb892 100644 --- a/include/lib/ArduinoJson/Misc/Visitable.hpp +++ b/include/lib/ArduinoJson/Misc/Visitable.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/MsgPack/MsgPackDeserializer.hpp b/include/lib/ArduinoJson/MsgPack/MsgPackDeserializer.hpp index 49c6fd4..c17be2d 100644 --- a/include/lib/ArduinoJson/MsgPack/MsgPackDeserializer.hpp +++ b/include/lib/ArduinoJson/MsgPack/MsgPackDeserializer.hpp @@ -4,12 +4,12 @@ #pragma once -#include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Deserialization/deserialize.hpp" +#include "lib/ArduinoJson/Memory/MemoryPool.hpp" +#include "lib/ArduinoJson/MsgPack/endianess.hpp" +#include "lib/ArduinoJson/MsgPack/ieee754.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Variant/VariantData.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/MsgPack/MsgPackSerializer.hpp b/include/lib/ArduinoJson/MsgPack/MsgPackSerializer.hpp index b1cd872..2a880b7 100644 --- a/include/lib/ArduinoJson/MsgPack/MsgPackSerializer.hpp +++ b/include/lib/ArduinoJson/MsgPack/MsgPackSerializer.hpp @@ -4,13 +4,13 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/MsgPack/endianess.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Serialization/CountingDecorator.hpp" +#include "lib/ArduinoJson/Serialization/measure.hpp" +#include "lib/ArduinoJson/Serialization/serialize.hpp" +#include "lib/ArduinoJson/Variant/VariantData.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/MsgPack/endianess.hpp b/include/lib/ArduinoJson/MsgPack/endianess.hpp index 74f7e9d..bd42a45 100644 --- a/include/lib/ArduinoJson/MsgPack/endianess.hpp +++ b/include/lib/ArduinoJson/MsgPack/endianess.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Polyfills/utility.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/MsgPack/ieee754.hpp b/include/lib/ArduinoJson/MsgPack/ieee754.hpp index 016d533..168c824 100644 --- a/include/lib/ArduinoJson/MsgPack/ieee754.hpp +++ b/include/lib/ArduinoJson/MsgPack/ieee754.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Namespace.hpp b/include/lib/ArduinoJson/Namespace.hpp index 2d85440..9b18c65 100644 --- a/include/lib/ArduinoJson/Namespace.hpp +++ b/include/lib/ArduinoJson/Namespace.hpp @@ -4,9 +4,9 @@ #pragma once -#include -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Polyfills/preprocessor.hpp" +#include "lib/ArduinoJson/version.hpp" #ifndef ARDUINOJSON_NAMESPACE diff --git a/include/lib/ArduinoJson/Numbers/Float.hpp b/include/lib/ArduinoJson/Numbers/Float.hpp index bbaca04..4ac9229 100644 --- a/include/lib/ArduinoJson/Numbers/Float.hpp +++ b/include/lib/ArduinoJson/Numbers/Float.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Numbers/FloatParts.hpp b/include/lib/ArduinoJson/Numbers/FloatParts.hpp index 4e53add..62b40ed 100644 --- a/include/lib/ArduinoJson/Numbers/FloatParts.hpp +++ b/include/lib/ArduinoJson/Numbers/FloatParts.hpp @@ -4,9 +4,9 @@ #pragma once -#include -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Numbers/FloatTraits.hpp" +#include "lib/ArduinoJson/Polyfills/math.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Numbers/FloatTraits.hpp b/include/lib/ArduinoJson/Numbers/FloatTraits.hpp index 60b1dfd..d185ff4 100644 --- a/include/lib/ArduinoJson/Numbers/FloatTraits.hpp +++ b/include/lib/ArduinoJson/Numbers/FloatTraits.hpp @@ -7,11 +7,11 @@ #include // for size_t #include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Polyfills/alias_cast.hpp" +#include "lib/ArduinoJson/Polyfills/math.hpp" +#include "lib/ArduinoJson/Polyfills/preprocessor.hpp" +#include "lib/ArduinoJson/Polyfills/static_array.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Numbers/Integer.hpp b/include/lib/ArduinoJson/Numbers/Integer.hpp index fb656a7..3dd113b 100644 --- a/include/lib/ArduinoJson/Numbers/Integer.hpp +++ b/include/lib/ArduinoJson/Numbers/Integer.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Namespace.hpp" #include // int64_t diff --git a/include/lib/ArduinoJson/Numbers/arithmeticCompare.hpp b/include/lib/ArduinoJson/Numbers/arithmeticCompare.hpp index bfd41d5..339df0c 100644 --- a/include/lib/ArduinoJson/Numbers/arithmeticCompare.hpp +++ b/include/lib/ArduinoJson/Numbers/arithmeticCompare.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Numbers/Integer.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Numbers/convertNumber.hpp b/include/lib/ArduinoJson/Numbers/convertNumber.hpp index 02bbefa..0444b30 100644 --- a/include/lib/ArduinoJson/Numbers/convertNumber.hpp +++ b/include/lib/ArduinoJson/Numbers/convertNumber.hpp @@ -14,9 +14,9 @@ #pragma GCC diagnostic ignored "-Wconversion" #endif -#include -#include -#include +#include "lib/ArduinoJson/Numbers/Float.hpp" +#include "lib/ArduinoJson/Polyfills/limits.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Numbers/parseNumber.hpp b/include/lib/ArduinoJson/Numbers/parseNumber.hpp index cf050c7..54395ea 100644 --- a/include/lib/ArduinoJson/Numbers/parseNumber.hpp +++ b/include/lib/ArduinoJson/Numbers/parseNumber.hpp @@ -4,14 +4,14 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Numbers/FloatTraits.hpp" +#include "lib/ArduinoJson/Numbers/convertNumber.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" +#include "lib/ArduinoJson/Polyfills/ctype.hpp" +#include "lib/ArduinoJson/Polyfills/math.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Variant/Converter.hpp" +#include "lib/ArduinoJson/Variant/VariantData.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Object/MemberProxy.hpp b/include/lib/ArduinoJson/Object/MemberProxy.hpp index 0bee84b..369616c 100644 --- a/include/lib/ArduinoJson/Object/MemberProxy.hpp +++ b/include/lib/ArduinoJson/Object/MemberProxy.hpp @@ -4,12 +4,12 @@ #pragma once -#include -#include -#include -#include -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Variant/VariantOperators.hpp" +#include "lib/ArduinoJson/Variant/VariantRef.hpp" +#include "lib/ArduinoJson/Variant/VariantShortcuts.hpp" +#include "lib/ArduinoJson/Variant/VariantTo.hpp" #ifdef _MSC_VER #pragma warning(push) diff --git a/include/lib/ArduinoJson/Object/ObjectFunctions.hpp b/include/lib/ArduinoJson/Object/ObjectFunctions.hpp index 1b46e84..d2b7ddc 100644 --- a/include/lib/ArduinoJson/Object/ObjectFunctions.hpp +++ b/include/lib/ArduinoJson/Object/ObjectFunctions.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Collection/CollectionData.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Object/ObjectImpl.hpp b/include/lib/ArduinoJson/Object/ObjectImpl.hpp index d66b61c..205749c 100644 --- a/include/lib/ArduinoJson/Object/ObjectImpl.hpp +++ b/include/lib/ArduinoJson/Object/ObjectImpl.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Array/ArrayRef.hpp" +#include "lib/ArduinoJson/Object/ObjectRef.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Object/ObjectIterator.hpp b/include/lib/ArduinoJson/Object/ObjectIterator.hpp index d729459..7b03ffe 100644 --- a/include/lib/ArduinoJson/Object/ObjectIterator.hpp +++ b/include/lib/ArduinoJson/Object/ObjectIterator.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Object/Pair.hpp" +#include "lib/ArduinoJson/Variant/SlotFunctions.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Object/ObjectRef.hpp b/include/lib/ArduinoJson/Object/ObjectRef.hpp index c945fb6..02df3d6 100644 --- a/include/lib/ArduinoJson/Object/ObjectRef.hpp +++ b/include/lib/ArduinoJson/Object/ObjectRef.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Object/ObjectFunctions.hpp" +#include "lib/ArduinoJson/Object/ObjectIterator.hpp" // Returns the size (in bytes) of an object with n elements. // Can be very handy to determine the size of a StaticMemoryPool. diff --git a/include/lib/ArduinoJson/Object/ObjectShortcuts.hpp b/include/lib/ArduinoJson/Object/ObjectShortcuts.hpp index 0f3409f..8861787 100644 --- a/include/lib/ArduinoJson/Object/ObjectShortcuts.hpp +++ b/include/lib/ArduinoJson/Object/ObjectShortcuts.hpp @@ -4,9 +4,9 @@ #pragma once -#include -#include -#include +#include "lib/ArduinoJson/Polyfills/attributes.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" +#include "lib/ArduinoJson/Strings/StringAdapters.hpp" namespace ARDUINOJSON_NAMESPACE { template diff --git a/include/lib/ArduinoJson/Object/Pair.hpp b/include/lib/ArduinoJson/Object/Pair.hpp index 44fce75..8a2d6b6 100644 --- a/include/lib/ArduinoJson/Object/Pair.hpp +++ b/include/lib/ArduinoJson/Object/Pair.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Strings/String.hpp" +#include "lib/ArduinoJson/Variant/VariantRef.hpp" namespace ARDUINOJSON_NAMESPACE { // A key value pair for CollectionData. diff --git a/include/lib/ArduinoJson/Polyfills/alias_cast.hpp b/include/lib/ArduinoJson/Polyfills/alias_cast.hpp index 8f8e277..96fa4a1 100644 --- a/include/lib/ArduinoJson/Polyfills/alias_cast.hpp +++ b/include/lib/ArduinoJson/Polyfills/alias_cast.hpp @@ -7,7 +7,7 @@ #include #include // for size_t -#include +#include "lib/ArduinoJson/Configuration.hpp" #include "math.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/assert.hpp b/include/lib/ArduinoJson/Polyfills/assert.hpp index 1030ec6..21fe3c5 100644 --- a/include/lib/ArduinoJson/Polyfills/assert.hpp +++ b/include/lib/ArduinoJson/Polyfills/assert.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Configuration.hpp" #if ARDUINOJSON_DEBUG #include diff --git a/include/lib/ArduinoJson/Polyfills/ctype.hpp b/include/lib/ArduinoJson/Polyfills/ctype.hpp index bd7a8cc..c6e9f7b 100644 --- a/include/lib/ArduinoJson/Polyfills/ctype.hpp +++ b/include/lib/ArduinoJson/Polyfills/ctype.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/integer.hpp b/include/lib/ArduinoJson/Polyfills/integer.hpp index 066c7b8..ea56789 100644 --- a/include/lib/ArduinoJson/Polyfills/integer.hpp +++ b/include/lib/ArduinoJson/Polyfills/integer.hpp @@ -6,7 +6,7 @@ #include // int8_t, int16_t -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/math.hpp b/include/lib/ArduinoJson/Polyfills/math.hpp index eff272a..b8c37c8 100644 --- a/include/lib/ArduinoJson/Polyfills/math.hpp +++ b/include/lib/ArduinoJson/Polyfills/math.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/mpl/max.hpp b/include/lib/ArduinoJson/Polyfills/mpl/max.hpp index 9ac47a5..a7e827a 100644 --- a/include/lib/ArduinoJson/Polyfills/mpl/max.hpp +++ b/include/lib/ArduinoJson/Polyfills/mpl/max.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" #include // for size_t diff --git a/include/lib/ArduinoJson/Polyfills/pgmspace.hpp b/include/lib/ArduinoJson/Polyfills/pgmspace.hpp index f253818..31c0ecc 100644 --- a/include/lib/ArduinoJson/Polyfills/pgmspace.hpp +++ b/include/lib/ArduinoJson/Polyfills/pgmspace.hpp @@ -4,9 +4,9 @@ #pragma once -#include -#include -#include +#include "lib/ArduinoJson/Configuration.hpp" +#include "lib/ArduinoJson/Namespace.hpp" +#include "lib/ArduinoJson/Polyfills/assert.hpp" namespace ARDUINOJSON_NAMESPACE { // Wraps a const char* so that the our functions are picked only if the diff --git a/include/lib/ArduinoJson/Polyfills/pgmspace_generic.hpp b/include/lib/ArduinoJson/Polyfills/pgmspace_generic.hpp index f5bbd85..772e431 100644 --- a/include/lib/ArduinoJson/Polyfills/pgmspace_generic.hpp +++ b/include/lib/ArduinoJson/Polyfills/pgmspace_generic.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Namespace.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/safe_strcmp.hpp b/include/lib/ArduinoJson/Polyfills/safe_strcmp.hpp index e017b5d..9baee5a 100644 --- a/include/lib/ArduinoJson/Polyfills/safe_strcmp.hpp +++ b/include/lib/ArduinoJson/Polyfills/safe_strcmp.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" #include // int8_t diff --git a/include/lib/ArduinoJson/Polyfills/static_array.hpp b/include/lib/ArduinoJson/Polyfills/static_array.hpp index a877b4c..c9a53ec 100644 --- a/include/lib/ArduinoJson/Polyfills/static_array.hpp +++ b/include/lib/ArduinoJson/Polyfills/static_array.hpp @@ -4,11 +4,11 @@ #pragma once -#include +#include "lib/ArduinoJson/Configuration.hpp" #if ARDUINOJSON_ENABLE_PROGMEM -#include +#include "lib/ArduinoJson/Polyfills/pgmspace_generic.hpp" #ifndef ARDUINOJSON_DEFINE_STATIC_ARRAY #define ARDUINOJSON_DEFINE_STATIC_ARRAY(type, name, value) \ diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/conditional.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/conditional.hpp index e42d1bb..226c2ef 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/conditional.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/conditional.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/declval.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/declval.hpp index 8708112..6c24bf3 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/declval.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/declval.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/enable_if.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/enable_if.hpp index cc29b33..cfa0919 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/enable_if.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/enable_if.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/integral_constant.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/integral_constant.hpp index b53d711..4e4414f 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/integral_constant.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/integral_constant.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/is_array.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/is_array.hpp index ee739a7..8272cb1 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/is_array.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/is_array.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" #include // size_t @@ -16,6 +16,6 @@ struct is_array : false_type {}; template struct is_array : true_type {}; -template -struct is_array : true_type {}; +template +struct is_array : true_type {}; } // namespace ARDUINOJSON_NAMESPACE diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/is_base_of.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/is_base_of.hpp index 32b41cd..7c69eff 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/is_base_of.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/is_base_of.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/is_integral.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/is_integral.hpp index 26e895c..1961880 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/is_integral.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/is_integral.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Configuration.hpp" #include "is_same.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/remove_const.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/remove_const.hpp index 5a19eb1..074cbe2 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/remove_const.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/remove_const.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/remove_reference.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/remove_reference.hpp index 1812850..23dc7b3 100644 --- a/include/lib/ArduinoJson/Polyfills/type_traits/remove_reference.hpp +++ b/include/lib/ArduinoJson/Polyfills/type_traits/remove_reference.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Serialization/CountingDecorator.hpp b/include/lib/ArduinoJson/Serialization/CountingDecorator.hpp index 3d89fb1..d251d56 100644 --- a/include/lib/ArduinoJson/Serialization/CountingDecorator.hpp +++ b/include/lib/ArduinoJson/Serialization/CountingDecorator.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Serialization/Writer.hpp b/include/lib/ArduinoJson/Serialization/Writer.hpp index 52bd117..8fed756 100644 --- a/include/lib/ArduinoJson/Serialization/Writer.hpp +++ b/include/lib/ArduinoJson/Serialization/Writer.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { @@ -28,20 +28,20 @@ class Writer { } // namespace ARDUINOJSON_NAMESPACE -#include +#include "lib/ArduinoJson/Serialization/Writers/StaticStringWriter.hpp" #if ARDUINOJSON_ENABLE_STD_STRING -#include +#include "lib/ArduinoJson/Serialization/Writers/StdStringWriter.hpp" #endif #if ARDUINOJSON_ENABLE_ARDUINO_STRING -#include +#include "lib/ArduinoJson/Serialization/Writers/ArduinoStringWriter.hpp" #endif #if ARDUINOJSON_ENABLE_STD_STREAM -#include +#include "lib/ArduinoJson/Serialization/Writers/StdStreamWriter.hpp" #endif #if ARDUINOJSON_ENABLE_ARDUINO_PRINT -#include +#include "lib/ArduinoJson/Serialization/Writers/PrintWriter.hpp" #endif diff --git a/include/lib/ArduinoJson/Serialization/Writers/DummyWriter.hpp b/include/lib/ArduinoJson/Serialization/Writers/DummyWriter.hpp index a26a1f1..9105540 100644 --- a/include/lib/ArduinoJson/Serialization/Writers/DummyWriter.hpp +++ b/include/lib/ArduinoJson/Serialization/Writers/DummyWriter.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Serialization/Writers/StaticStringWriter.hpp b/include/lib/ArduinoJson/Serialization/Writers/StaticStringWriter.hpp index 1a4213b..3132b35 100644 --- a/include/lib/ArduinoJson/Serialization/Writers/StaticStringWriter.hpp +++ b/include/lib/ArduinoJson/Serialization/Writers/StaticStringWriter.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Namespace.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Serialization/Writers/StdStringWriter.hpp b/include/lib/ArduinoJson/Serialization/Writers/StdStringWriter.hpp index c1f7cc0..024a96f 100644 --- a/include/lib/ArduinoJson/Serialization/Writers/StdStringWriter.hpp +++ b/include/lib/ArduinoJson/Serialization/Writers/StdStringWriter.hpp @@ -4,8 +4,8 @@ #pragma once -#include -#include +#include "lib/ArduinoJson/Namespace.hpp" +#include "lib/ArduinoJson/Polyfills/type_traits.hpp" #include diff --git a/include/lib/ArduinoJson/Serialization/measure.hpp b/include/lib/ArduinoJson/Serialization/measure.hpp index 6d19994..e8b6065 100644 --- a/include/lib/ArduinoJson/Serialization/measure.hpp +++ b/include/lib/ArduinoJson/Serialization/measure.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Serialization/Writers/DummyWriter.hpp" namespace ARDUINOJSON_NAMESPACE { diff --git a/include/lib/ArduinoJson/Serialization/serialize.hpp b/include/lib/ArduinoJson/Serialization/serialize.hpp index 16d2e4e..57081ce 100644 --- a/include/lib/ArduinoJson/Serialization/serialize.hpp +++ b/include/lib/ArduinoJson/Serialization/serialize.hpp @@ -4,7 +4,7 @@ #pragma once -#include +#include "lib/ArduinoJson/Serialization/Writer.hpp" namespace ARDUINOJSON_NAMESPACE { @@ -41,14 +41,14 @@ serialize(const TSource &source, void *buffer, size_t bufferSize) { } template