@@ -450,7 +450,7 @@ static PyModuleDef_Slot main_slots[] = {
450
450
static PyModuleDef main_def = TEST_MODULE_DEF ("main" , main_slots , testexport_methods );
451
451
452
452
PyMODINIT_FUNC
453
- PyInit__testmultiphase (PyObject * spec )
453
+ PyInit__testmultiphase (void )
454
454
{
455
455
return PyModuleDef_Init (& main_def );
456
456
}
@@ -495,7 +495,7 @@ static PyModuleDef def_nonmodule = TEST_MODULE_DEF(
495
495
"_testmultiphase_nonmodule" , slots_create_nonmodule , NULL );
496
496
497
497
PyMODINIT_FUNC
498
- PyInit__testmultiphase_nonmodule (PyObject * spec )
498
+ PyInit__testmultiphase_nonmodule (void )
499
499
{
500
500
return PyModuleDef_Init (& def_nonmodule );
501
501
}
@@ -525,7 +525,7 @@ static PyModuleDef def_nonmodule_with_methods = TEST_MODULE_DEF(
525
525
"_testmultiphase_nonmodule_with_methods" , slots_create_nonmodule , nonmodule_methods );
526
526
527
527
PyMODINIT_FUNC
528
- PyInit__testmultiphase_nonmodule_with_methods (PyObject * spec )
528
+ PyInit__testmultiphase_nonmodule_with_methods (void )
529
529
{
530
530
return PyModuleDef_Init (& def_nonmodule_with_methods );
531
531
}
@@ -545,7 +545,7 @@ static PyModuleDef def_nonascii_latin = { \
545
545
};
546
546
547
547
PyMODINIT_FUNC
548
- PyInitU__testmultiphase_zkouka_naten_evc07gi8e (PyObject * spec )
548
+ PyInitU__testmultiphase_zkouka_naten_evc07gi8e (void )
549
549
{
550
550
return PyModuleDef_Init (& def_nonascii_latin );
551
551
}
@@ -563,15 +563,15 @@ static PyModuleDef def_nonascii_kana = { \
563
563
};
564
564
565
565
PyMODINIT_FUNC
566
- PyInitU_eckzbwbhc6jpgzcx415x (PyObject * spec )
566
+ PyInitU_eckzbwbhc6jpgzcx415x (void )
567
567
{
568
568
return PyModuleDef_Init (& def_nonascii_kana );
569
569
}
570
570
571
571
/*** Module with a single-character name ***/
572
572
573
573
PyMODINIT_FUNC
574
- PyInit_x (PyObject * spec )
574
+ PyInit_x (void )
575
575
{
576
576
return PyModuleDef_Init (& main_def );
577
577
}
@@ -582,7 +582,7 @@ static PyModuleDef null_slots_def = TEST_MODULE_DEF(
582
582
"_testmultiphase_null_slots" , NULL , NULL );
583
583
584
584
PyMODINIT_FUNC
585
- PyInit__testmultiphase_null_slots (PyObject * spec )
585
+ PyInit__testmultiphase_null_slots (void )
586
586
{
587
587
return PyModuleDef_Init (& null_slots_def );
588
588
}
@@ -598,7 +598,7 @@ static PyModuleDef def_bad_large = TEST_MODULE_DEF(
598
598
"_testmultiphase_bad_slot_large" , slots_bad_large , NULL );
599
599
600
600
PyMODINIT_FUNC
601
- PyInit__testmultiphase_bad_slot_large (PyObject * spec )
601
+ PyInit__testmultiphase_bad_slot_large (void )
602
602
{
603
603
return PyModuleDef_Init (& def_bad_large );
604
604
}
@@ -612,7 +612,7 @@ static PyModuleDef def_bad_negative = TEST_MODULE_DEF(
612
612
"_testmultiphase_bad_slot_negative" , slots_bad_negative , NULL );
613
613
614
614
PyMODINIT_FUNC
615
- PyInit__testmultiphase_bad_slot_negative (PyObject * spec )
615
+ PyInit__testmultiphase_bad_slot_negative (void )
616
616
{
617
617
return PyModuleDef_Init (& def_bad_negative );
618
618
}
@@ -630,7 +630,7 @@ static PyModuleDef def_create_int_with_state = { \
630
630
};
631
631
632
632
PyMODINIT_FUNC
633
- PyInit__testmultiphase_create_int_with_state (PyObject * spec )
633
+ PyInit__testmultiphase_create_int_with_state (void )
634
634
{
635
635
return PyModuleDef_Init (& def_create_int_with_state );
636
636
}
@@ -649,7 +649,7 @@ static PyModuleDef def_negative_size = { \
649
649
};
650
650
651
651
PyMODINIT_FUNC
652
- PyInit__testmultiphase_negative_size (PyObject * spec )
652
+ PyInit__testmultiphase_negative_size (void )
653
653
{
654
654
return PyModuleDef_Init (& def_negative_size );
655
655
}
@@ -658,26 +658,26 @@ PyInit__testmultiphase_negative_size(PyObject *spec)
658
658
static PyModuleDef uninitialized_def = TEST_MODULE_DEF ("main" , main_slots , testexport_methods );
659
659
660
660
PyMODINIT_FUNC
661
- PyInit__testmultiphase_export_uninitialized (PyObject * spec )
661
+ PyInit__testmultiphase_export_uninitialized (void )
662
662
{
663
663
return (PyObject * ) & uninitialized_def ;
664
664
}
665
665
666
666
PyMODINIT_FUNC
667
- PyInit__testmultiphase_export_null (PyObject * spec )
667
+ PyInit__testmultiphase_export_null (void )
668
668
{
669
669
return NULL ;
670
670
}
671
671
672
672
PyMODINIT_FUNC
673
- PyInit__testmultiphase_export_raise (PyObject * spec )
673
+ PyInit__testmultiphase_export_raise (void )
674
674
{
675
675
PyErr_SetString (PyExc_SystemError , "bad export function" );
676
676
return NULL ;
677
677
}
678
678
679
679
PyMODINIT_FUNC
680
- PyInit__testmultiphase_export_unreported_exception (PyObject * spec )
680
+ PyInit__testmultiphase_export_unreported_exception (void )
681
681
{
682
682
PyErr_SetString (PyExc_SystemError , "bad export function" );
683
683
return PyModuleDef_Init (& main_def );
@@ -698,7 +698,7 @@ static PyModuleDef def_create_null = TEST_MODULE_DEF(
698
698
"_testmultiphase_create_null" , slots_create_null , NULL );
699
699
700
700
PyMODINIT_FUNC
701
- PyInit__testmultiphase_create_null (PyObject * spec )
701
+ PyInit__testmultiphase_create_null (void )
702
702
{
703
703
return PyModuleDef_Init (& def_create_null );
704
704
}
@@ -719,7 +719,7 @@ static PyModuleDef def_create_raise = TEST_MODULE_DEF(
719
719
"_testmultiphase_create_null" , slots_create_raise , NULL );
720
720
721
721
PyMODINIT_FUNC
722
- PyInit__testmultiphase_create_raise (PyObject * spec )
722
+ PyInit__testmultiphase_create_raise (void )
723
723
{
724
724
return PyModuleDef_Init (& def_create_raise );
725
725
}
@@ -740,7 +740,7 @@ static PyModuleDef def_create_unreported_exception = TEST_MODULE_DEF(
740
740
"_testmultiphase_create_unreported_exception" , slots_create_unreported_exception , NULL );
741
741
742
742
PyMODINIT_FUNC
743
- PyInit__testmultiphase_create_unreported_exception (PyObject * spec )
743
+ PyInit__testmultiphase_create_unreported_exception (void )
744
744
{
745
745
return PyModuleDef_Init (& def_create_unreported_exception );
746
746
}
@@ -755,7 +755,7 @@ static PyModuleDef def_nonmodule_with_exec_slots = TEST_MODULE_DEF(
755
755
"_testmultiphase_nonmodule_with_exec_slots" , slots_nonmodule_with_exec_slots , NULL );
756
756
757
757
PyMODINIT_FUNC
758
- PyInit__testmultiphase_nonmodule_with_exec_slots (PyObject * spec )
758
+ PyInit__testmultiphase_nonmodule_with_exec_slots (void )
759
759
{
760
760
return PyModuleDef_Init (& def_nonmodule_with_exec_slots );
761
761
}
@@ -775,7 +775,7 @@ static PyModuleDef def_exec_err = TEST_MODULE_DEF(
775
775
"_testmultiphase_exec_err" , slots_exec_err , NULL );
776
776
777
777
PyMODINIT_FUNC
778
- PyInit__testmultiphase_exec_err (PyObject * spec )
778
+ PyInit__testmultiphase_exec_err (void )
779
779
{
780
780
return PyModuleDef_Init (& def_exec_err );
781
781
}
@@ -817,7 +817,7 @@ static PyModuleDef def_exec_unreported_exception = TEST_MODULE_DEF(
817
817
"_testmultiphase_exec_unreported_exception" , slots_exec_unreported_exception , NULL );
818
818
819
819
PyMODINIT_FUNC
820
- PyInit__testmultiphase_exec_unreported_exception (PyObject * spec )
820
+ PyInit__testmultiphase_exec_unreported_exception (void )
821
821
{
822
822
return PyModuleDef_Init (& def_exec_unreported_exception );
823
823
}
@@ -861,7 +861,7 @@ static PyModuleDef def_meth_state_access = {
861
861
};
862
862
863
863
PyMODINIT_FUNC
864
- PyInit__testmultiphase_meth_state_access (PyObject * spec )
864
+ PyInit__testmultiphase_meth_state_access (void )
865
865
{
866
866
return PyModuleDef_Init (& def_meth_state_access );
867
867
}
@@ -874,7 +874,7 @@ static PyModuleDef def_module_state_shared = {
874
874
};
875
875
876
876
PyMODINIT_FUNC
877
- PyInit__test_module_state_shared (PyObject * spec )
877
+ PyInit__test_module_state_shared (void )
878
878
{
879
879
PyObject * module = PyModule_Create (& def_module_state_shared );
880
880
if (module == NULL ) {
@@ -894,7 +894,7 @@ PyInit__test_module_state_shared(PyObject *spec)
894
894
static PyModuleDef imp_dummy_def = TEST_MODULE_DEF ("imp_dummy" , main_slots , testexport_methods );
895
895
896
896
PyMODINIT_FUNC
897
- PyInit_imp_dummy (PyObject * spec )
897
+ PyInit_imp_dummy (void )
898
898
{
899
899
return PyModuleDef_Init (& imp_dummy_def );
900
900
}
0 commit comments