File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 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
150150 The function signature is::
151151
152152 PyObject *PyCFunction(PyObject *self,
153- PyObject *const * args);
153+ PyObject *args);
154154
155155.. c :type :: PyCFunctionWithKeywords
156156
@@ -159,7 +159,7 @@ Implementing functions and methods
159159 The function signature is::
160160
161161 PyObject *PyCFunctionWithKeywords(PyObject *self,
162- PyObject *const * args,
162+ PyObject *args,
163163 PyObject *kwargs);
164164
165165
Original file line number Diff line number Diff line change @@ -820,16 +820,12 @@ static PyModuleDef_Slot meth_state_access_slots[] = {
820820};
821821
822822static 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 ,
833829};
834830
835831PyMODINIT_FUNC
You can’t perform that action at this time.
0 commit comments