Fix init functions naming convention

This commit is contained in:
Roberto Alsina 2024-06-03 11:29:22 -03:00
parent 2c8899d714
commit ab8644b9ec
22 changed files with 48 additions and 42 deletions

View File

@ -119,7 +119,8 @@ static struct PyModuleDef moduledef = {
NULL,
};
void initbitmaps()
PyMODINIT_FUNC
PyInit_bitmaps()
{
PyObject *m, *d;

View File

@ -75,8 +75,8 @@ static struct PyModuleDef moduledef = {
NULL, /* m_free */
};
void
initbox()
PyMODINIT_FUNC
PyInit_box()
{
PyObject *m, *d;

View File

@ -472,8 +472,8 @@ static char browser_module_documentation[] =
NULL, /* m_free */
};
void
initbrowser()
PyMODINIT_FUNC
PyInit_browser()
{
PyObject *m, *d;

View File

@ -356,8 +356,8 @@ static char button_module_documentation[] =
NULL, /* m_free */
};
void
initbutton()
PyMODINIT_FUNC
PyInit_button()
{
PyObject *m, *d;

View File

@ -332,8 +332,8 @@ static char choice_module_documentation[] =
NULL, /* m_free */
};
void
initchoice()
PyMODINIT_FUNC
PyInit_choice()
{
PyObject *m, *d;

View File

@ -93,8 +93,8 @@ static char clock_module_documentation[] =
};
void
initclock()
PyMODINIT_FUNC
PyInit_clock()
{
PyObject *m, *d;

View File

@ -191,8 +191,8 @@ static char counter_module_documentation[] =
NULL, /* m_free */
};
void
initcounter()
PyMODINIT_FUNC
PyInit_counter()
{
PyObject *m, *d;

View File

@ -191,8 +191,8 @@ static char dial_module_documentation[] =
NULL, /* m_free */
};
void
initdial()
PyMODINIT_FUNC
PyInit_dial()
{
PyObject *m, *d;

View File

@ -678,8 +678,8 @@ static char forms_module_documentation[] =
NULL, /* m_free */
};
void
initforms()
PyMODINIT_FUNC
PyInit_forms()
{
PyObject *m, *d;

View File

@ -73,8 +73,8 @@ static char frame_module_documentation[] =
NULL, /* m_free */
};
void
initframe()
PyMODINIT_FUNC
PyInit_frame()
{
PyObject *m, *d;

View File

@ -484,8 +484,9 @@ static char goodies_module_documentation[] =
NULL, /* m_clear */
NULL, /* m_free */
};
void
initgoodies()
PyMODINIT_FUNC
PyInit_goodies()
{
PyObject *m, *d;

View File

@ -232,8 +232,8 @@ static char input_module_documentation[] =
NULL, /* m_free */
};
void
initinput()
PyMODINIT_FUNC
PyInit_input()
{
PyObject *m, *d;

View File

@ -291,8 +291,9 @@ static char menu_module_documentation[] =
NULL, /* m_clear */
NULL, /* m_free */
};
void
initmenu()
PyMODINIT_FUNC
PyInit_menu()
{
PyObject *m, *d;

View File

@ -499,8 +499,8 @@ static char objects_module_documentation[] =
NULL, /* m_free */
};
void
initobjects()
PyMODINIT_FUNC
PyInit_objects()
{
PyObject *m, *d;

View File

@ -115,8 +115,9 @@ static char pixmaps_module_documentation[] =
NULL, /* m_clear */
NULL, /* m_free */
};
void
initpixmaps()
PyMODINIT_FUNC
PyInit_pixmaps()
{
PyObject *m, *d;

View File

@ -359,8 +359,8 @@ static char popups_module_documentation[] =
NULL, /* m_free */
};
void
initpopups()
PyMODINIT_FUNC
PyInit_popups()
{
PyObject *m, *d;

View File

@ -291,8 +291,8 @@ static char positioner_module_documentation[] =
NULL, /* m_free */
};
void
initpositioner()
PyMODINIT_FUNC
PyInit_positioner()
{
PyObject *m, *d;

View File

@ -252,8 +252,8 @@ static char slider_module_documentation[] =
NULL, /* m_free */
};
void
initslider()
PyMODINIT_FUNC
PyInit_slider()
{
PyObject *m, *d;

View File

@ -70,8 +70,9 @@ static char text_module_documentation[] =
NULL, /* m_clear */
NULL, /* m_free */
};
void
inittext()
PyMODINIT_FUNC
PyInit_text()
{
PyObject *m, *d;

View File

@ -112,8 +112,8 @@ static char timer_module_documentation[] =
NULL, /* m_free */
};
void
inittimer()
PyMODINIT_FUNC
PyInit_timer()
{
PyObject *m, *d;

View File

@ -80,7 +80,8 @@ static PyMethodDef xformsMethods [] ={
NULL, /* m_free */
};
void initxforms()
PyMODINIT_FUNC
PyInit_xforms()
{
PyModule_Create(&moduledef);
}

View File

@ -429,8 +429,8 @@ static char xyplot_module_documentation[] =
NULL, /* m_free */
};
void
initxyplot ()
PyMODINIT_FUNC
PyInit_xyplot ()
{
PyObject *m, *d;