From ae8da741883a0245c98314d5a5431112ad11fb81 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sun, 25 Oct 2026 21:09:55 +0100 Subject: [PATCH] Enforce LF text checkouts across platforms --- .gitattributes | 1 + ThirdParty/jsoncpp/LICENSE | 2 +- ThirdParty/jsoncpp/include/json/features.h | 84 +++++++++++----------- 3 files changed, 44 insertions(+), 43 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/ThirdParty/jsoncpp/LICENSE b/ThirdParty/jsoncpp/LICENSE index d20fb29..1c37b11 100644 --- a/ThirdParty/jsoncpp/LICENSE +++ b/ThirdParty/jsoncpp/LICENSE @@ -1 +1 @@ -The json-cpp library and this documentation are in Public Domain. +The json-cpp library and this documentation are in Public Domain. diff --git a/ThirdParty/jsoncpp/include/json/features.h b/ThirdParty/jsoncpp/include/json/features.h index f1404f6..5a9adec 100644 --- a/ThirdParty/jsoncpp/include/json/features.h +++ b/ThirdParty/jsoncpp/include/json/features.h @@ -1,42 +1,42 @@ -#ifndef CPPTL_JSON_FEATURES_H_INCLUDED -# define CPPTL_JSON_FEATURES_H_INCLUDED - -# include "forwards.h" - -namespace Json { - - /** \brief Configuration passed to reader and writer. - * This configuration object can be used to force the Reader or Writer - * to behave in a standard conforming way. - */ - class JSON_API Features - { - public: - /** \brief A configuration that allows all features and assumes all strings are UTF-8. - * - C & C++ comments are allowed - * - Root object can be any JSON value - * - Assumes Value strings are encoded in UTF-8 - */ - static Features all(); - - /** \brief A configuration that is strictly compatible with the JSON specification. - * - Comments are forbidden. - * - Root object must be either an array or an object value. - * - Assumes Value strings are encoded in UTF-8 - */ - static Features strictMode(); - - /** \brief Initialize the configuration like JsonConfig::allFeatures; - */ - Features(); - - /// \c true if comments are allowed. Default: \c true. - bool allowComments_; - - /// \c true if root must be either an array or an object value. Default: \c false. - bool strictRoot_; - }; - -} // namespace Json - -#endif // CPPTL_JSON_FEATURES_H_INCLUDED +#ifndef CPPTL_JSON_FEATURES_H_INCLUDED +# define CPPTL_JSON_FEATURES_H_INCLUDED + +# include "forwards.h" + +namespace Json { + + /** \brief Configuration passed to reader and writer. + * This configuration object can be used to force the Reader or Writer + * to behave in a standard conforming way. + */ + class JSON_API Features + { + public: + /** \brief A configuration that allows all features and assumes all strings are UTF-8. + * - C & C++ comments are allowed + * - Root object can be any JSON value + * - Assumes Value strings are encoded in UTF-8 + */ + static Features all(); + + /** \brief A configuration that is strictly compatible with the JSON specification. + * - Comments are forbidden. + * - Root object must be either an array or an object value. + * - Assumes Value strings are encoded in UTF-8 + */ + static Features strictMode(); + + /** \brief Initialize the configuration like JsonConfig::allFeatures; + */ + Features(); + + /// \c true if comments are allowed. Default: \c true. + bool allowComments_; + + /// \c true if root must be either an array or an object value. Default: \c false. + bool strictRoot_; + }; + +} // namespace Json + +#endif // CPPTL_JSON_FEATURES_H_INCLUDED