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, NULL,
}; };
void initbitmaps() PyMODINIT_FUNC
PyInit_bitmaps()
{ {
PyObject *m, *d; PyObject *m, *d;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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