File tree 2 files changed +8
-12
lines changed
2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ Implementing functions and methods
150
150
The function signature is::
151
151
152
152
PyObject *PyCFunction(PyObject *self,
153
- PyObject *const * args);
153
+ PyObject *args);
154
154
155
155
.. c :type :: PyCFunctionWithKeywords
156
156
@@ -159,7 +159,7 @@ Implementing functions and methods
159
159
The function signature is::
160
160
161
161
PyObject *PyCFunctionWithKeywords(PyObject *self,
162
- PyObject *const * args,
162
+ PyObject *args,
163
163
PyObject *kwargs);
164
164
165
165
Original file line number Diff line number Diff line change @@ -820,16 +820,12 @@ static PyModuleDef_Slot meth_state_access_slots[] = {
820
820
};
821
821
822
822
static PyModuleDef def_meth_state_access = {
823
- PyModuleDef_HEAD_INIT , /* m_base */
824
- "_testmultiphase_meth_state_access" , /* m_name */
825
- PyDoc_STR ("Module testing access"
826
- " to state from methods." ),
827
- sizeof (meth_state ), /* m_size */
828
- NULL , /* m_methods */
829
- meth_state_access_slots , /* m_slots */
830
- 0 , /* m_traverse */
831
- 0 , /* m_clear */
832
- 0 , /* m_free */
823
+ PyModuleDef_HEAD_INIT ,
824
+ .m_name = "_testmultiphase_meth_state_access" ,
825
+ .m_doc = PyDoc_STR ("Module testing access"
826
+ " to state from methods." ),
827
+ .m_size = sizeof (meth_state ),
828
+ .m_slots = meth_state_access_slots ,
833
829
};
834
830
835
831
PyMODINIT_FUNC
You can’t perform that action at this time.
0 commit comments