1111 Copyright (c) 2000-2005 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
1212 Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
1313 Copyright (c) 2002-2016 Karl Waclawek <karl@waclawek.net>
14- Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org>
14+ Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
1515 Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
1616 Copyright (c) 2016 Thomas Beutlich <tc@tbeu.de>
1717 Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
1818 Copyright (c) 2022 Thijs Schreijer <thijs@thijsschreijer.nl>
19+ Copyright (c) 2023 Hanno Böck <hanno@gentoo.org>
20+ Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
21+ Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
1922 Licensed under the MIT license:
2023
2124 Permission is hereby granted, free of charge, to any person obtaining
@@ -269,7 +272,7 @@ XML_ParserCreate_MM(const XML_Char *encoding,
269272 const XML_Memory_Handling_Suite *memsuite,
270273 const XML_Char *namespaceSeparator);
271274
272- /* Prepare a parser object to be re-used . This is particularly
275+ /* Prepare a parser object to be reused . This is particularly
273276 valuable when memory allocation overhead is disproportionately high,
274277 such as when a large number of small documnents need to be parsed.
275278 All handlers are cleared from the parser, except for the
@@ -951,7 +954,7 @@ XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser);
951954XMLPARSEAPI (int )
952955XML_GetCurrentByteCount(XML_Parser parser);
953956
954- /* If XML_CONTEXT_BYTES is defined , returns the input buffer, sets
957+ /* If XML_CONTEXT_BYTES is >=1 , returns the input buffer, sets
955958 the integer pointed to by offset to the offset within this buffer
956959 of the current parse position, and sets the integer pointed to by size
957960 to the size of this buffer (the number of input bytes). Otherwise
@@ -1025,7 +1028,9 @@ enum XML_FeatureEnum {
10251028 XML_FEATURE_ATTR_INFO,
10261029 /* Added in Expat 2.4.0. */
10271030 XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
1028- XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT
1031+ XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT,
1032+ /* Added in Expat 2.6.0. */
1033+ XML_FEATURE_GE
10291034 /* Additional features must be added to the end of this enum. */
10301035};
10311036
@@ -1038,24 +1043,30 @@ typedef struct {
10381043XMLPARSEAPI (const XML_Feature *)
10391044XML_GetFeatureList(void );
10401045
1041- #ifdef XML_DTD
1042- /* Added in Expat 2.4.0. */
1046+ #if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
1047+ /* Added in Expat 2.4.0 for XML_DTD defined and
1048+ * added in Expat 2.6.0 for XML_GE == 1. */
10431049XMLPARSEAPI (XML_Bool)
10441050XML_SetBillionLaughsAttackProtectionMaximumAmplification(
10451051 XML_Parser parser, float maximumAmplificationFactor);
10461052
1047- /* Added in Expat 2.4.0. */
1053+ /* Added in Expat 2.4.0 for XML_DTD defined and
1054+ * added in Expat 2.6.0 for XML_GE == 1. */
10481055XMLPARSEAPI (XML_Bool)
10491056XML_SetBillionLaughsAttackProtectionActivationThreshold(
10501057 XML_Parser parser, unsigned long long activationThresholdBytes);
10511058#endif
10521059
1060+ /* Added in Expat 2.6.0. */
1061+ XMLPARSEAPI (XML_Bool)
1062+ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1063+
10531064/* Expat follows the semantic versioning convention.
1054- See http ://semver.org.
1065+ See https ://semver.org
10551066*/
10561067#define XML_MAJOR_VERSION 2
1057- #define XML_MINOR_VERSION 5
1058- #define XML_MICRO_VERSION 0
1068+ #define XML_MINOR_VERSION 6
1069+ #define XML_MICRO_VERSION 3
10591070
10601071#ifdef __cplusplus
10611072}
0 commit comments