From ab8644b9ecd319480952da5d89d95fffa87ed798 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Mon, 3 Jun 2024 11:29:22 -0300 Subject: [PATCH] Fix init functions naming convention --- Pyxform/Modules/bitmaps.c | 3 ++- Pyxform/Modules/box.c | 4 ++-- Pyxform/Modules/browser.c | 4 ++-- Pyxform/Modules/button.c | 4 ++-- Pyxform/Modules/choice.c | 4 ++-- Pyxform/Modules/clock.c | 4 ++-- Pyxform/Modules/counter.c | 4 ++-- Pyxform/Modules/dial.c | 4 ++-- Pyxform/Modules/forms.c | 4 ++-- Pyxform/Modules/frame.c | 4 ++-- Pyxform/Modules/goodies.c | 5 +++-- Pyxform/Modules/input.c | 4 ++-- Pyxform/Modules/menu.c | 5 +++-- Pyxform/Modules/objects.c | 4 ++-- Pyxform/Modules/pixmaps.c | 5 +++-- Pyxform/Modules/popups.c | 4 ++-- Pyxform/Modules/positioner.c | 4 ++-- Pyxform/Modules/slider.c | 4 ++-- Pyxform/Modules/text.c | 5 +++-- Pyxform/Modules/timer.c | 4 ++-- Pyxform/Modules/xforms.c | 3 ++- Pyxform/Modules/xyplot.c | 4 ++-- 22 files changed, 48 insertions(+), 42 deletions(-) diff --git a/Pyxform/Modules/bitmaps.c b/Pyxform/Modules/bitmaps.c index 0b11b7f..b7729ab 100644 --- a/Pyxform/Modules/bitmaps.c +++ b/Pyxform/Modules/bitmaps.c @@ -119,7 +119,8 @@ static struct PyModuleDef moduledef = { NULL, }; -void initbitmaps() +PyMODINIT_FUNC +PyInit_bitmaps() { PyObject *m, *d; diff --git a/Pyxform/Modules/box.c b/Pyxform/Modules/box.c index 3271d0d..179b684 100644 --- a/Pyxform/Modules/box.c +++ b/Pyxform/Modules/box.c @@ -75,8 +75,8 @@ static struct PyModuleDef moduledef = { NULL, /* m_free */ }; -void -initbox() +PyMODINIT_FUNC +PyInit_box() { PyObject *m, *d; diff --git a/Pyxform/Modules/browser.c b/Pyxform/Modules/browser.c index b7632a2..b5f03e8 100644 --- a/Pyxform/Modules/browser.c +++ b/Pyxform/Modules/browser.c @@ -472,8 +472,8 @@ static char browser_module_documentation[] = NULL, /* m_free */ }; -void -initbrowser() +PyMODINIT_FUNC +PyInit_browser() { PyObject *m, *d; diff --git a/Pyxform/Modules/button.c b/Pyxform/Modules/button.c index e01dbb2..f7aaeca 100644 --- a/Pyxform/Modules/button.c +++ b/Pyxform/Modules/button.c @@ -356,8 +356,8 @@ static char button_module_documentation[] = NULL, /* m_free */ }; -void -initbutton() +PyMODINIT_FUNC +PyInit_button() { PyObject *m, *d; diff --git a/Pyxform/Modules/choice.c b/Pyxform/Modules/choice.c index 70c4c1c..05f4bdd 100644 --- a/Pyxform/Modules/choice.c +++ b/Pyxform/Modules/choice.c @@ -332,8 +332,8 @@ static char choice_module_documentation[] = NULL, /* m_free */ }; -void -initchoice() +PyMODINIT_FUNC +PyInit_choice() { PyObject *m, *d; diff --git a/Pyxform/Modules/clock.c b/Pyxform/Modules/clock.c index 27b800e..02d5bb3 100644 --- a/Pyxform/Modules/clock.c +++ b/Pyxform/Modules/clock.c @@ -93,8 +93,8 @@ static char clock_module_documentation[] = }; -void -initclock() +PyMODINIT_FUNC +PyInit_clock() { PyObject *m, *d; diff --git a/Pyxform/Modules/counter.c b/Pyxform/Modules/counter.c index d44f20e..be60354 100644 --- a/Pyxform/Modules/counter.c +++ b/Pyxform/Modules/counter.c @@ -191,8 +191,8 @@ static char counter_module_documentation[] = NULL, /* m_free */ }; -void -initcounter() +PyMODINIT_FUNC +PyInit_counter() { PyObject *m, *d; diff --git a/Pyxform/Modules/dial.c b/Pyxform/Modules/dial.c index afbf608..663ff91 100644 --- a/Pyxform/Modules/dial.c +++ b/Pyxform/Modules/dial.c @@ -191,8 +191,8 @@ static char dial_module_documentation[] = NULL, /* m_free */ }; -void -initdial() +PyMODINIT_FUNC +PyInit_dial() { PyObject *m, *d; diff --git a/Pyxform/Modules/forms.c b/Pyxform/Modules/forms.c index 9bcd29c..5cccc27 100644 --- a/Pyxform/Modules/forms.c +++ b/Pyxform/Modules/forms.c @@ -678,8 +678,8 @@ static char forms_module_documentation[] = NULL, /* m_free */ }; -void - initforms() +PyMODINIT_FUNC +PyInit_forms() { PyObject *m, *d; diff --git a/Pyxform/Modules/frame.c b/Pyxform/Modules/frame.c index 80041aa..a5e2e33 100644 --- a/Pyxform/Modules/frame.c +++ b/Pyxform/Modules/frame.c @@ -73,8 +73,8 @@ static char frame_module_documentation[] = NULL, /* m_free */ }; -void -initframe() +PyMODINIT_FUNC +PyInit_frame() { PyObject *m, *d; diff --git a/Pyxform/Modules/goodies.c b/Pyxform/Modules/goodies.c index a48071b..1feb799 100644 --- a/Pyxform/Modules/goodies.c +++ b/Pyxform/Modules/goodies.c @@ -484,8 +484,9 @@ static char goodies_module_documentation[] = NULL, /* m_clear */ NULL, /* m_free */ }; -void -initgoodies() + +PyMODINIT_FUNC +PyInit_goodies() { PyObject *m, *d; diff --git a/Pyxform/Modules/input.c b/Pyxform/Modules/input.c index 48e3538..54cda7d 100644 --- a/Pyxform/Modules/input.c +++ b/Pyxform/Modules/input.c @@ -232,8 +232,8 @@ static char input_module_documentation[] = NULL, /* m_free */ }; -void -initinput() +PyMODINIT_FUNC +PyInit_input() { PyObject *m, *d; diff --git a/Pyxform/Modules/menu.c b/Pyxform/Modules/menu.c index d0d246f..bfc39d6 100644 --- a/Pyxform/Modules/menu.c +++ b/Pyxform/Modules/menu.c @@ -291,8 +291,9 @@ static char menu_module_documentation[] = NULL, /* m_clear */ NULL, /* m_free */ }; -void -initmenu() + +PyMODINIT_FUNC +PyInit_menu() { PyObject *m, *d; diff --git a/Pyxform/Modules/objects.c b/Pyxform/Modules/objects.c index 103c2be..f0d2486 100644 --- a/Pyxform/Modules/objects.c +++ b/Pyxform/Modules/objects.c @@ -499,8 +499,8 @@ static char objects_module_documentation[] = NULL, /* m_free */ }; -void -initobjects() +PyMODINIT_FUNC +PyInit_objects() { PyObject *m, *d; diff --git a/Pyxform/Modules/pixmaps.c b/Pyxform/Modules/pixmaps.c index 447752e..df36e25 100644 --- a/Pyxform/Modules/pixmaps.c +++ b/Pyxform/Modules/pixmaps.c @@ -115,8 +115,9 @@ static char pixmaps_module_documentation[] = NULL, /* m_clear */ NULL, /* m_free */ }; -void -initpixmaps() + +PyMODINIT_FUNC +PyInit_pixmaps() { PyObject *m, *d; diff --git a/Pyxform/Modules/popups.c b/Pyxform/Modules/popups.c index 324c911..1c9b5a1 100644 --- a/Pyxform/Modules/popups.c +++ b/Pyxform/Modules/popups.c @@ -359,8 +359,8 @@ static char popups_module_documentation[] = NULL, /* m_free */ }; -void -initpopups() +PyMODINIT_FUNC +PyInit_popups() { PyObject *m, *d; diff --git a/Pyxform/Modules/positioner.c b/Pyxform/Modules/positioner.c index 9cb16b2..45e7491 100644 --- a/Pyxform/Modules/positioner.c +++ b/Pyxform/Modules/positioner.c @@ -291,8 +291,8 @@ static char positioner_module_documentation[] = NULL, /* m_free */ }; -void -initpositioner() +PyMODINIT_FUNC +PyInit_positioner() { PyObject *m, *d; diff --git a/Pyxform/Modules/slider.c b/Pyxform/Modules/slider.c index 5a6bd11..77b65b0 100644 --- a/Pyxform/Modules/slider.c +++ b/Pyxform/Modules/slider.c @@ -252,8 +252,8 @@ static char slider_module_documentation[] = NULL, /* m_free */ }; -void -initslider() +PyMODINIT_FUNC +PyInit_slider() { PyObject *m, *d; diff --git a/Pyxform/Modules/text.c b/Pyxform/Modules/text.c index d892d8d..de2d4e9 100644 --- a/Pyxform/Modules/text.c +++ b/Pyxform/Modules/text.c @@ -70,8 +70,9 @@ static char text_module_documentation[] = NULL, /* m_clear */ NULL, /* m_free */ }; -void -inittext() + +PyMODINIT_FUNC +PyInit_text() { PyObject *m, *d; diff --git a/Pyxform/Modules/timer.c b/Pyxform/Modules/timer.c index 66f5b2b..abe0f82 100644 --- a/Pyxform/Modules/timer.c +++ b/Pyxform/Modules/timer.c @@ -112,8 +112,8 @@ static char timer_module_documentation[] = NULL, /* m_free */ }; -void -inittimer() +PyMODINIT_FUNC +PyInit_timer() { PyObject *m, *d; diff --git a/Pyxform/Modules/xforms.c b/Pyxform/Modules/xforms.c index c7f4cd5..384bfd6 100644 --- a/Pyxform/Modules/xforms.c +++ b/Pyxform/Modules/xforms.c @@ -80,7 +80,8 @@ static PyMethodDef xformsMethods [] ={ NULL, /* m_free */ }; -void initxforms() +PyMODINIT_FUNC +PyInit_xforms() { PyModule_Create(&moduledef); } diff --git a/Pyxform/Modules/xyplot.c b/Pyxform/Modules/xyplot.c index b15d14a..19afb1d 100644 --- a/Pyxform/Modules/xyplot.c +++ b/Pyxform/Modules/xyplot.c @@ -429,8 +429,8 @@ static char xyplot_module_documentation[] = NULL, /* m_free */ }; -void -initxyplot () +PyMODINIT_FUNC +PyInit_xyplot () { PyObject *m, *d;