@@ -22,7 +22,7 @@ _Py_IDENTIFIER(__subclasshook__);
2222
2323typedef struct {
2424 PyObject * _abc_data_type ;
25- } _abcmodulestate ;
25+ } _abcmodule_state ;
2626
2727/* A global counter that is incremented each time a class is
2828 registered as a virtual subclass of anything. It forces the
@@ -31,12 +31,12 @@ typedef struct {
3131 external code. */
3232static unsigned long long abc_invalidation_counter = 0 ;
3333
34- static inline _abcmodulestate *
34+ static inline _abcmodule_state *
3535get_abc_state (PyObject * module )
3636{
3737 void * state = PyModule_GetState (module );
3838 assert (state != NULL );
39- return (_abcmodulestate * )state ;
39+ return (_abcmodule_state * )state ;
4040}
4141
4242/* This object stores internal state for ABCs.
@@ -97,7 +97,7 @@ static PyType_Spec _abc_data_type_spec = {
9797static _abc_data *
9898_get_impl (PyObject * module , PyObject * self )
9999{
100- _abcmodulestate * state = get_abc_state (module );
100+ _abcmodule_state * state = get_abc_state (module );
101101 PyObject * impl = _PyObject_GetAttrId (self , & PyId__abc_impl );
102102 if (impl == NULL ) {
103103 return NULL ;
@@ -411,7 +411,7 @@ static PyObject *
411411_abc__abc_init (PyObject * module , PyObject * self )
412412/*[clinic end generated code: output=594757375714cda1 input=8d7fe470ff77f029]*/
413413{
414- _abcmodulestate * state = get_abc_state (module );
414+ _abcmodule_state * state = get_abc_state (module );
415415 PyObject * data ;
416416 if (compute_abstract_methods (self ) < 0 ) {
417417 return NULL ;
@@ -816,7 +816,7 @@ _abc_get_cache_token_impl(PyObject *module)
816816 return PyLong_FromUnsignedLongLong (abc_invalidation_counter );
817817}
818818
819- static struct PyMethodDef module_functions [] = {
819+ static struct PyMethodDef _abcmodule_methods [] = {
820820 _ABC_GET_CACHE_TOKEN_METHODDEF
821821 _ABC__ABC_INIT_METHODDEF
822822 _ABC__RESET_REGISTRY_METHODDEF
@@ -831,7 +831,7 @@ static struct PyMethodDef module_functions[] = {
831831static int
832832_abcmodule_exec (PyObject * module )
833833{
834- _abcmodulestate * state = get_abc_state (module );
834+ _abcmodule_state * state = get_abc_state (module );
835835 state -> _abc_data_type = PyType_FromSpec (& _abc_data_type_spec );
836836 if (state -> _abc_data_type == NULL ) {
837837 return -1 ;
@@ -843,15 +843,15 @@ _abcmodule_exec(PyObject *module)
843843static int
844844_abcmodule_traverse (PyObject * module , visitproc visit , void * arg )
845845{
846- _abcmodulestate * state = get_abc_state (module );
846+ _abcmodule_state * state = get_abc_state (module );
847847 Py_VISIT (state -> _abc_data_type );
848848 return 0 ;
849849}
850850
851851static int
852852_abcmodule_clear (PyObject * module )
853853{
854- _abcmodulestate * state = get_abc_state (module );
854+ _abcmodule_state * state = get_abc_state (module );
855855 Py_CLEAR (state -> _abc_data_type );
856856 return 0 ;
857857}
@@ -871,8 +871,8 @@ static struct PyModuleDef _abcmodule = {
871871 PyModuleDef_HEAD_INIT ,
872872 "_abc" ,
873873 _abc__doc__ ,
874- sizeof (_abcmodulestate ),
875- module_functions ,
874+ sizeof (_abcmodule_state ),
875+ _abcmodule_methods ,
876876 _abcmodule_slots ,
877877 _abcmodule_traverse ,
878878 _abcmodule_clear ,
0 commit comments