From 54d438aaa6fad49527a043a8df0842104e817069 Mon Sep 17 00:00:00 2001 From: Dwayne Litzenberger Date: Sun, 14 Jul 2013 16:54:54 -0700 Subject: Py3k cleanup: PyMODINIT_FUNC --- src/_fastmath.c | 3 +-- src/block_template.c | 4 ---- src/hash_template.c | 4 ---- src/stream_template.c | 8 ++------ src/winrand.c | 3 +-- 5 files changed, 4 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/_fastmath.c b/src/_fastmath.c index 7f08349..87d68ec 100644 --- a/src/_fastmath.c +++ b/src/_fastmath.c @@ -1652,11 +1652,10 @@ static struct PyModuleDef moduledef = { }; #endif -#ifdef IS_PY3K PyMODINIT_FUNC +#ifdef IS_PY3K PyInit__fastmath (void) #else -void init_fastmath (void) #endif { diff --git a/src/block_template.c b/src/block_template.c index 78af81e..fe9f778 100644 --- a/src/block_template.c +++ b/src/block_template.c @@ -742,11 +742,7 @@ static struct PyModuleDef moduledef = { #endif /* Initialization function for the module */ -#ifdef IS_PY3K PyMODINIT_FUNC -#else -void -#endif _MODULE_NAME (void) { PyObject *m; diff --git a/src/hash_template.c b/src/hash_template.c index 8f3ea4b..2572577 100644 --- a/src/hash_template.c +++ b/src/hash_template.c @@ -308,11 +308,7 @@ static struct PyModuleDef moduledef = { /* Initialize this module. */ -#ifdef IS_PY3K PyMODINIT_FUNC -#else -void -#endif _MODULE_NAME (void) { PyObject *m; diff --git a/src/stream_template.c b/src/stream_template.c index 522ac7b..5ef1f1e 100644 --- a/src/stream_template.c +++ b/src/stream_template.c @@ -286,13 +286,9 @@ static PyTypeObject ALGtype = /* Initialization function for the module */ -#ifdef IS_PY3K PyMODINIT_FUNC -#else -void -#endif - _MODULE_NAME (void) - { +_MODULE_NAME (void) +{ PyObject *m; #ifdef IS_PY3K diff --git a/src/winrand.c b/src/winrand.c index c72812e..060e917 100644 --- a/src/winrand.c +++ b/src/winrand.c @@ -270,11 +270,10 @@ static struct PyModuleDef moduledef = { }; #endif -#ifdef IS_PY3K PyMODINIT_FUNC +#ifdef IS_PY3K PyInit_winrandom() #else -void initwinrandom() #endif { -- cgit v1.2.1