mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-91320: Use _PyCFunction_CAST() (#92251)
Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func). Change generated by the command: sed -i -e \ 's!(PyCFunction)(void(\*)(void)) *\([A-Za-z0-9_]\+\)!_PyCFunction_CAST(\1)!g' \ $(find -name "*.c")
This commit is contained in:
parent
551d02b3e6
commit
804f2529d8
31 changed files with 146 additions and 146 deletions
|
@ -1588,9 +1588,9 @@ static PyMethodDef deque_methods[] = {
|
|||
METH_O, extend_doc},
|
||||
{"extendleft", (PyCFunction)deque_extendleft,
|
||||
METH_O, extendleft_doc},
|
||||
{"index", (PyCFunction)(void(*)(void))deque_index,
|
||||
{"index", _PyCFunction_CAST(deque_index),
|
||||
METH_FASTCALL, index_doc},
|
||||
{"insert", (PyCFunction)(void(*)(void))deque_insert,
|
||||
{"insert", _PyCFunction_CAST(deque_insert),
|
||||
METH_FASTCALL, insert_doc},
|
||||
{"pop", (PyCFunction)deque_pop,
|
||||
METH_NOARGS, pop_doc},
|
||||
|
@ -1604,7 +1604,7 @@ static PyMethodDef deque_methods[] = {
|
|||
METH_NOARGS, reversed_doc},
|
||||
{"reverse", (PyCFunction)deque_reverse,
|
||||
METH_NOARGS, reverse_doc},
|
||||
{"rotate", (PyCFunction)(void(*)(void))deque_rotate,
|
||||
{"rotate", _PyCFunction_CAST(deque_rotate),
|
||||
METH_FASTCALL, rotate_doc},
|
||||
{"__sizeof__", (PyCFunction)deque_sizeof,
|
||||
METH_NOARGS, sizeof_doc},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue