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
Prev Previous commit
Next Next commit
Pull in main
  • Loading branch information
erlend-aasland committed Apr 12, 2023
commit 1dcfc4f8a5b9a1fda8df7b78d172a21c848314f3
22 changes: 3 additions & 19 deletions PC/msvcrtmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,19 +564,6 @@ static struct PyMethodDef msvcrt_functions[] = {
{NULL, NULL}
};


static struct PyModuleDef msvcrtmodule = {
PyModuleDef_HEAD_INIT,
"msvcrt",
NULL,
-1,
msvcrt_functions,
NULL,
NULL,
NULL,
NULL
};

static int
insertptr(PyObject *mod, char *name, void *value)
{
Expand Down Expand Up @@ -607,13 +594,10 @@ insertptr(PyObject *mod, char *name, void *value)
} \
} while (0)

PyMODINIT_FUNC
PyInit_msvcrt(void)
static int
exec_module(PyObject* m)
{
PyObject *m = PyModule_Create(&msvcrtmodule);
if (m == NULL) {
return NULL;
}
int st;

/* constants for the locking() function's mode argument */
INSERTINT(m, "LK_LOCK", _LK_LOCK);
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.