gh-132983: Reduce the size of `_zstdmodule.h` (#133793)

This commit is contained in:
Adam Turner 2025-05-10 22:25:22 +01:00 committed by GitHub
parent 4f2f780d53
commit 1a548c0a50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 166 additions and 165 deletions

View file

@ -7,7 +7,13 @@ Python module.
# define Py_BUILD_CORE_MODULE 1
#endif
#include "Python.h"
#include "_zstdmodule.h"
#include "zstddict.h"
#include <zstd.h> // ZSTD_*()
#include <zdict.h> // ZDICT_*()
/*[clinic input]
module _zstd
@ -727,7 +733,7 @@ static struct PyModuleDef_Slot _zstd_slots[] = {
{0, NULL},
};
struct PyModuleDef _zstdmodule = {
static struct PyModuleDef _zstdmodule = {
.m_base = PyModuleDef_HEAD_INIT,
.m_name = "_zstd",
.m_doc = "Implementation module for Zstandard compression.",