In Python3 we need to return the module

This commit is contained in:
Roberto Alsina 2024-06-03 17:57:27 -03:00
parent ca2dc8f9cf
commit f2057962ff
22 changed files with 23 additions and 2 deletions

View File

@ -138,4 +138,5 @@ PyInit_bitmaps()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module bitmaps");
return m;
}

View File

@ -95,5 +95,6 @@ PyInit_box()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module box");
return m;
}

View File

@ -492,5 +492,6 @@ PyInit_browser()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module browser");
return m;
}

View File

@ -375,5 +375,6 @@ PyInit_button()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module button");
return m;
}

View File

@ -351,5 +351,6 @@ PyInit_choice()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module choice");
return m;
}

View File

@ -112,5 +112,6 @@ PyInit_clock()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module clock");
return m;
}

View File

@ -210,5 +210,6 @@ PyInit_counter()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module counter");
return m;
}

View File

@ -210,5 +210,6 @@ PyInit_dial()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module dial");
return m;
}

View File

@ -681,7 +681,7 @@ static struct PyModuleDef moduledef =
};
PyMODINIT_FUNC
PyInit_forms()
PyInit_forms(void)
{
PyObject *m, *d;
@ -698,5 +698,6 @@ PyInit_forms()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module forms");
return m;
}

View File

@ -93,5 +93,6 @@ PyInit_frame()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module frame");
return m;
}

View File

@ -505,5 +505,6 @@ PyInit_goodies()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module goodies");
return m;
}

View File

@ -252,5 +252,6 @@ PyInit_input()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module input");
return m;
}

View File

@ -312,5 +312,6 @@ PyInit_menu()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module menu");
return m;
}

View File

@ -519,5 +519,6 @@ PyInit_objects()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module objects");
return m;
}

View File

@ -136,5 +136,6 @@ PyInit_pixmaps()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module pixmaps");
return m;
}

View File

@ -379,5 +379,6 @@ PyInit_popups()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module popups");
return m;
}

View File

@ -311,5 +311,6 @@ PyInit_positioner()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module positioner");
return m;
}

View File

@ -272,5 +272,6 @@ PyInit_slider()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module slider");
return m;
}

View File

@ -91,5 +91,6 @@ PyInit_text()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module text");
return m;
}

View File

@ -132,5 +132,6 @@ PyInit_timer()
/* Check for errors */
if (PyErr_Occurred())
Py_FatalError("can't initialize module timer");
return m;
}

View File

@ -85,6 +85,6 @@ static struct PyModuleDef moduledef =
PyMODINIT_FUNC
PyInit_xforms()
{
PyModule_Create(&moduledef);
return PyModule_Create(&moduledef);
}

View File

@ -448,4 +448,5 @@ PyInit_xyplot ()
/* Check for errors */
if (PyErr_Occurred ())
Py_FatalError ("can't initialize module xyplot");
return m;
}