Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add empty module state
  • Loading branch information
Erlend E. Aasland committed Jan 4, 2021
commit 863d9748857c41a9cac350e7ad77b7240ad30727
16 changes: 7 additions & 9 deletions Modules/cjkcodecs/multibytecodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#include "multibytecodec.h"
#include "clinic/multibytecodec.c.h"

typedef struct {
} _multibytecodec_state;

/*[clinic input]
module _multibytecodec
class _multibytecodec.MultibyteCodec "MultibyteCodecObject *" "&MultibyteCodec_Type"
Expand Down Expand Up @@ -2045,15 +2048,10 @@ static struct PyMethodDef __methods[] = {


static struct PyModuleDef _multibytecodecmodule = {
PyModuleDef_HEAD_INIT,
"_multibytecodec",
NULL,
-1,
__methods,
NULL,
NULL,
NULL,
NULL
.m_base = PyModuleDef_HEAD_INIT,
.m_name = "_multibytecodec",
.m_size = sizeof(_multibytecodec_state),
.m_methods = __methods,
};

PyMODINIT_FUNC
Expand Down