diff options
author | Yilei "Dolee" Yang <yileiyang@google.com> | 2022-02-18 22:33:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 22:33:06 (GMT) |
commit | 6312c1052c0186b4596fc45c42fd3ade9f8f5911 (patch) | |
tree | c57f8f3591daa6d5514493f7076c14d43f7852cb /Modules/expat/pyexpatns.h | |
parent | 892ff93d7f47f8edae5c8a0f5d5ffd4b0a8f8d77 (diff) | |
download | cpython-6312c1052c0186b4596fc45c42fd3ade9f8f5911.zip cpython-6312c1052c0186b4596fc45c42fd3ade9f8f5911.tar.gz cpython-6312c1052c0186b4596fc45c42fd3ade9f8f5911.tar.bz2 |
bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397)
The libexpat 2.4.1 upgrade from introduced the following new exported symbols:
* `testingAccountingGetCountBytesDirect`
* `testingAccountingGetCountBytesIndirect`
* `unsignedCharToPrintable`
* `XML_SetBillionLaughsAttackProtectionActivationThreshold`
* `XML_SetBillionLaughsAttackProtectionMaximumAmplification`
We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h)
(The newer libexpat upgrade has no new symbols).
Automerge-Triggered-By: GH:gpshead
Diffstat (limited to 'Modules/expat/pyexpatns.h')
-rw-r--r-- | Modules/expat/pyexpatns.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/expat/pyexpatns.h b/Modules/expat/pyexpatns.h index cfb742e..d45d9b6 100644 --- a/Modules/expat/pyexpatns.h +++ b/Modules/expat/pyexpatns.h @@ -38,6 +38,9 @@ #ifndef PYEXPATNS_H #define PYEXPATNS_H +#define testingAccountingGetCountBytesDirect PyExpat_testingAccountingGetCountBytesDirect +#define testingAccountingGetCountBytesIndirect PyExpat_testingAccountingGetCountBytesIndirect +#define unsignedCharToPrintable PyExpat_unsignedCharToPrintable #define XML_DefaultCurrent PyExpat_XML_DefaultCurrent #define XML_ErrorString PyExpat_XML_ErrorString #define XML_ExpatVersion PyExpat_XML_ExpatVersion @@ -81,6 +84,8 @@ #define XML_ResumeParser PyExpat_XML_ResumeParser #define XML_SetAttlistDeclHandler PyExpat_XML_SetAttlistDeclHandler #define XML_SetBase PyExpat_XML_SetBase +#define XML_SetBillionLaughsAttackProtectionActivationThreshold PyExpat_XML_SetBillionLaughsAttackProtectionActivationThreshold +#define XML_SetBillionLaughsAttackProtectionMaximumAmplification PyExpat_XML_SetBillionLaughsAttackProtectionMaximumAmplification #define XML_SetCdataSectionHandler PyExpat_XML_SetCdataSectionHandler #define XML_SetCharacterDataHandler PyExpat_XML_SetCharacterDataHandler #define XML_SetCommentHandler PyExpat_XML_SetCommentHandler |