summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2013-07-14 16:54:54 -0700
committerDwayne Litzenberger <dlitz@dlitz.net>2013-07-14 19:14:35 -0700
commit54d438aaa6fad49527a043a8df0842104e817069 (patch)
tree8fd52cababff74fef2fbd22a976456e8ac578ace /src
parentea810d0b5f54ed5b0e86476b80fc332488bbfa42 (diff)
downloadpycrypto-54d438aaa6fad49527a043a8df0842104e817069.tar.gz
Py3k cleanup: PyMODINIT_FUNC
Diffstat (limited to 'src')
-rw-r--r--src/_fastmath.c3
-rw-r--r--src/block_template.c4
-rw-r--r--src/hash_template.c4
-rw-r--r--src/stream_template.c8
-rw-r--r--src/winrand.c3
5 files changed, 4 insertions, 18 deletions
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
{