Skip to content

Commit

Permalink
rename PyInit__* functions
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Sep 30, 2024
1 parent 52da956 commit 1ee9966
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion psutil/_psutil_aix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ static struct PyModuleDef moduledef = {

#define INITERROR return NULL

PyMODINIT_FUNC PyInit__psutil_aix(void)
PyMODINIT_FUNC pyinit_psutil_aix(void)

#else
#define INITERROR return
Expand Down
2 changes: 1 addition & 1 deletion psutil/_psutil_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static PyMethodDef mod_methods[] = {
NULL
};

PyObject *PyInit__psutil_bsd(void)
PyObject *pyinit_psutil_bsd(void)
#else /* PY_MAJOR_VERSION */
#define INITERR return

Expand Down
2 changes: 1 addition & 1 deletion psutil/_psutil_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static PyMethodDef mod_methods[] = {
NULL
};

PyObject *PyInit__psutil_linux(void)
PyObject *pyinit_psutil_linux(void)
#else /* PY_MAJOR_VERSION */
#define INITERR return

Expand Down
2 changes: 1 addition & 1 deletion psutil/_psutil_osx.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static PyMethodDef mod_methods[] = {
NULL
};

PyObject *PyInit__psutil_osx(void)
PyObject *pyinit_psutil_osx(void)
#else /* PY_MAJOR_VERSION */
#define INITERR return

Expand Down
2 changes: 1 addition & 1 deletion psutil/_psutil_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ static PyMethodDef mod_methods[] = {
NULL
};

PyObject *PyInit__psutil_posix(void)
PyObject *pyinit_psutil_posix(void)
#else /* PY_MAJOR_VERSION */
#define INITERR return

Expand Down
2 changes: 1 addition & 1 deletion psutil/_psutil_sunos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ static struct PyModuleDef moduledef = {

#define INITERROR return NULL

PyMODINIT_FUNC PyInit__psutil_sunos(void)
PyMODINIT_FUNC pyinit_psutil_sunos(void)

#else
#define INITERROR return
Expand Down
2 changes: 1 addition & 1 deletion psutil/_psutil_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static struct PyModuleDef moduledef = {

#define INITERROR return NULL

PyMODINIT_FUNC PyInit__psutil_windows(void)
PyMODINIT_FUNC pyinit_psutil_windows(void)

#else
#define INITERROR return
Expand Down

0 comments on commit 1ee9966

Please sign in to comment.