src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp in passenger-5.1.10 vs src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp in passenger-5.1.11
- old
+ new
@@ -106,10 +106,11 @@
* portable conversion from/to string...
*
* It is an internal header that must not be exposed.
*/
+namespace Passenger {
namespace Json {
static char getDecimalPoint() {
#ifdef JSONCPP_NO_LOCALE_SUPPORT
return '\0';
#else
@@ -197,11 +198,11 @@
}
}
}
} // namespace Json {
-
+} // namespace Passenger
#endif // LIB_JSONCPP_JSON_TOOL_H_INCLUDED
// //////////////////////////////////////////////////////////////////////
// End of content of file: src/lib_json/json_tool.h
// //////////////////////////////////////////////////////////////////////
@@ -266,11 +267,11 @@
#if !defined(JSONCPP_DEPRECATED_STACK_LIMIT)
#define JSONCPP_DEPRECATED_STACK_LIMIT 1000
#endif
static size_t const stackLimit_g = JSONCPP_DEPRECATED_STACK_LIMIT; // see readValue()
-
+namespace Passenger {
namespace Json {
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
typedef std::unique_ptr<CharReader> CharReaderPtr;
#else
@@ -2249,11 +2250,11 @@
}
return sin;
}
} // namespace Json
-
+} // namespace Passenger
// //////////////////////////////////////////////////////////////////////
// End of content of file: src/lib_json/json_reader.cpp
// //////////////////////////////////////////////////////////////////////
@@ -2270,10 +2271,11 @@
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
// included by json_value.cpp
+namespace Passenger {
namespace Json {
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////
@@ -2430,11 +2432,11 @@
copy(other);
return *this;
}
} // namespace Json
-
+} // namespace Passenger
// //////////////////////////////////////////////////////////////////////
// End of content of file: src/lib_json/json_valueiterator.inl
// //////////////////////////////////////////////////////////////////////
@@ -2467,10 +2469,11 @@
#include <cstddef> // size_t
#include <algorithm> // min()
#define JSON_ASSERT_UNREACHABLE assert(false)
+namespace Passenger {
namespace Json {
// This is a walkaround to avoid the static initialization of Value::null.
// kNull must be word-aligned to avoid crashing on ARM. We use an alignment of
// 8 (instead of 4) as a bit of future-proofing.
@@ -2621,10 +2624,11 @@
free(value);
}
#endif // JSONCPP_USING_SECURE_MEMORY
} // namespace Json
+} // namespace Passenger
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////
// ValueInternals...
@@ -2634,10 +2638,11 @@
#if !defined(JSON_IS_AMALGAMATION)
#include "json_valueiterator.inl"
#endif // if !defined(JSON_IS_AMALGAMATION)
+namespace Passenger {
namespace Json {
Exception::Exception(JSONCPP_STRING const& msg)
: msg_(msg)
{}
@@ -4074,10 +4079,11 @@
}
return *node;
}
} // namespace Json
+} // namespace Passenger
// //////////////////////////////////////////////////////////////////////
// End of content of file: src/lib_json/json_value.cpp
// //////////////////////////////////////////////////////////////////////
@@ -4163,10 +4169,11 @@
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
// Disable warning about strdup being deprecated.
#pragma warning(disable : 4996)
#endif
+namespace Passenger {
namespace Json {
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
typedef std::unique_ptr<StreamWriter> StreamWriterPtr;
#else
@@ -5311,14 +5318,10 @@
writer->write(root, &sout);
return sout;
}
} // namespace Json
+} // namespace Passenger
// //////////////////////////////////////////////////////////////////////
// End of content of file: src/lib_json/json_writer.cpp
// //////////////////////////////////////////////////////////////////////
-
-
-
-
-