Remove traces of Py_InitModule*.

This commit is contained in:
Georg Brandl 2009-01-02 19:20:26 +00:00
parent aa672ebe49
commit 574b1279d9
2 changed files with 16 additions and 4 deletions

View file

@ -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);
}