mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Remove traces of Py_InitModule*.
This commit is contained in:
parent
aa672ebe49
commit
574b1279d9
2 changed files with 16 additions and 4 deletions
|
@ -13,8 +13,20 @@ static PyMethodDef example_methods[] = {
|
|||
{NULL, NULL}
|
||||
};
|
||||
|
||||
static struct PyModuleDef examplemodule = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"example",
|
||||
"example module doc string",
|
||||
-1,
|
||||
example_methods,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
initexample(void)
|
||||
PyInit_example(void)
|
||||
{
|
||||
Py_InitModule("example", example_methods);
|
||||
return PyModule_Create(&examplemodule);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue