summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-02 19:20:26 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-02 19:20:26 (GMT)
commit574b1279d974b45064492ec53e7dd0a81a4ef0e0 (patch)
tree60abb20e8b8ff87fafa51f564417ca034046c014 /PC
parentaa672ebe49cbb58a2c8b384955af7b5c792801af (diff)
downloadcpython-574b1279d974b45064492ec53e7dd0a81a4ef0e0.zip
cpython-574b1279d974b45064492ec53e7dd0a81a4ef0e0.tar.gz
cpython-574b1279d974b45064492ec53e7dd0a81a4ef0e0.tar.bz2
Remove traces of Py_InitModule*.
Diffstat (limited to 'PC')
-rw-r--r--PC/example_nt/example.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/PC/example_nt/example.c b/PC/example_nt/example.c
index 953fb82..d807311 100644
--- a/PC/example_nt/example.c
+++ b/PC/example_nt/example.c
@@ -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);
}