Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use PyMODINIT_FUNC and update docs accordingly.

  • Loading branch information...
commit ead9e09c5adbc94bfc3c5cc8344089b836cfffd5 1 parent cd9092a
@cgohlke cgohlke authored stefanv committed
View
8 doc/source/user/c-info.ufunc-tutorial.rst
@@ -150,7 +150,7 @@ the module.
NULL
};
- PyObject *PyInit_spam(void)
+ PyMODINIT_FUNC PyInit_spam(void)
{
PyObject *m;
m = PyModule_Create(&moduledef);
@@ -335,7 +335,7 @@ the primary thing that must be changed to create your own ufunc.
NULL
};
- PyObject *PyInit_npufunc(void)
+ PyMODINIT_FUNC PyInit_npufunc(void)
{
PyObject *m, *logit, *d;
m = PyModule_Create(&moduledef);
@@ -614,7 +614,7 @@ the primary thing that must be changed to create your own ufunc.
NULL
};
- PyObject *PyInit_npufunc(void)
+ PyMODINIT_FUNC PyInit_npufunc(void)
{
PyObject *m, *logit, *d;
m = PyModule_Create(&moduledef);
@@ -837,7 +837,7 @@ as well as all other properties of a ufunc.
NULL
};
- PyObject *PyInit_npufunc(void)
+ PyMODINIT_FUNC PyInit_npufunc(void)
{
PyObject *m, *logit, *d;
m = PyModule_Create(&moduledef);
View
2  numpy/core/blasdot/_dotblas.c
@@ -1230,7 +1230,7 @@ static struct PyModuleDef moduledef = {
/* Initialization function for the module */
#if defined(NPY_PY3K)
#define RETVAL m
-PyObject *PyInit__dotblas(void)
+PyMODINIT_FUNC PyInit__dotblas(void)
#else
#define RETVAL
PyMODINIT_FUNC init_dotblas(void)
View
3  numpy/core/src/dummymodule.c
@@ -1,4 +1,3 @@
-
/* -*- c -*- */
/*
@@ -32,7 +31,7 @@ static struct PyModuleDef moduledef = {
/* Initialization function for the module */
#if defined(NPY_PY3K)
-PyObject *PyInit__dummy(void) {
+PyMODINIT_FUNC PyInit__dummy(void) {
PyObject *m;
m = PyModule_Create(&moduledef);
if (!m) {
View
2  numpy/core/src/multiarray/multiarray_tests.c.src
@@ -461,7 +461,7 @@ static struct PyModuleDef moduledef = {
#if defined(NPY_PY3K)
#define RETVAL m
-PyObject *PyInit_multiarray_tests(void)
+PyMODINIT_FUNC PyInit_multiarray_tests(void)
#else
#define RETVAL
PyMODINIT_FUNC
View
2  numpy/core/src/multiarray/multiarraymodule.c
@@ -3888,7 +3888,7 @@ static struct PyModuleDef moduledef = {
/* Initialization function for the module */
#if defined(NPY_PY3K)
#define RETVAL m
-PyObject *PyInit_multiarray(void) {
+PyMODINIT_FUNC PyInit_multiarray(void) {
#else
#define RETVAL
PyMODINIT_FUNC initmultiarray(void) {
View
2  numpy/core/src/scalarmathmodule.c.src
@@ -1998,7 +1998,7 @@ static struct PyModuleDef moduledef = {
#if defined(NPY_PY3K)
#define RETVAL m
-PyObject *PyInit_scalarmath(void)
+PyMODINIT_FUNC PyInit_scalarmath(void)
#else
#define RETVAL
PyMODINIT_FUNC
View
2  numpy/core/src/umath/umath_tests.c.src
@@ -301,7 +301,7 @@ static struct PyModuleDef moduledef = {
#if defined(NPY_PY3K)
#define RETVAL m
-PyObject *PyInit_umath_tests(void)
+PyMODINIT_FUNC PyInit_umath_tests(void)
#else
#define RETVAL
PyMODINIT_FUNC
View
2  numpy/core/src/umath/umathmodule.c
@@ -323,7 +323,7 @@ static struct PyModuleDef moduledef = {
#if defined(NPY_PY3K)
#define RETVAL m
-PyObject *PyInit_umath(void)
+PyMODINIT_FUNC PyInit_umath(void)
#else
#define RETVAL
PyMODINIT_FUNC initumath(void)
View
2  numpy/f2py/rules.py
@@ -186,7 +186,7 @@
#if PY_VERSION_HEX >= 0x03000000
#define RETVAL m
-PyObject *PyInit_#modulename#(void) {
+PyMODINIT_FUNC PyInit_#modulename#(void) {
#else
#define RETVAL
PyMODINIT_FUNC init#modulename#(void) {
View
2  numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c
@@ -132,7 +132,7 @@ static struct PyModuleDef moduledef = {
#if PY_VERSION_HEX >= 0x03000000
#define RETVAL m
-PyObject *PyInit_test_array_from_pyobj_ext(void) {
+PyMODINIT_FUNC PyInit_test_array_from_pyobj_ext(void) {
#else
#define RETVAL
PyMODINIT_FUNC inittest_array_from_pyobj_ext(void) {
View
2  numpy/fft/fftpack_litemodule.c
@@ -326,7 +326,7 @@ static struct PyModuleDef moduledef = {
/* Initialization function for the module */
#if PY_MAJOR_VERSION >= 3
#define RETVAL m
-PyObject *PyInit_fftpack_lite(void)
+PyMODINIT_FUNC PyInit_fftpack_lite(void)
#else
#define RETVAL
PyMODINIT_FUNC
View
2  numpy/lib/src/_compiled_base.c
@@ -1708,7 +1708,7 @@ static struct PyModuleDef moduledef = {
#if defined(NPY_PY3K)
#define RETVAL m
-PyObject *PyInit__compiled_base(void)
+PyMODINIT_FUNC PyInit__compiled_base(void)
#else
#define RETVAL
PyMODINIT_FUNC
View
2  numpy/linalg/lapack_litemodule.c
@@ -848,7 +848,7 @@ static struct PyModuleDef moduledef = {
/* Initialization function for the module */
#if PY_MAJOR_VERSION >= 3
#define RETVAL m
-PyObject *PyInit_lapack_lite(void)
+PyMODINIT_FUNC PyInit_lapack_lite(void)
#else
#define RETVAL
PyMODINIT_FUNC
View
2  numpy/numarray/_capi.c
@@ -3394,7 +3394,7 @@ static struct PyModuleDef moduledef = {
NULL
};
-PyObject *PyInit__capi(void)
+PyMODINIT_FUNC PyInit__capi(void)
#else
#define RETVAL
Please sign in to comment.
Something went wrong with that request. Please try again.