mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
Fix also return type for few other functions (clear, releasebuffer).
This commit is contained in:
parent
1005c84535
commit
d4f9cf5545
25 changed files with 128 additions and 122 deletions
|
@ -1031,7 +1031,7 @@ select_devpoll_close_impl(devpollObject *self)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
devpoll_get_closed(devpollObject *self)
|
||||
devpoll_get_closed(devpollObject *self, void *Py_UNUSED(ignored))
|
||||
{
|
||||
if (self->fd_devpoll < 0)
|
||||
Py_RETURN_TRUE;
|
||||
|
@ -1333,7 +1333,7 @@ select_epoll_close_impl(pyEpoll_Object *self)
|
|||
|
||||
|
||||
static PyObject*
|
||||
pyepoll_get_closed(pyEpoll_Object *self)
|
||||
pyepoll_get_closed(pyEpoll_Object *self, void *Py_UNUSED(ignored))
|
||||
{
|
||||
if (self->epfd < 0)
|
||||
Py_RETURN_TRUE;
|
||||
|
@ -1979,7 +1979,7 @@ select_kqueue_close_impl(kqueue_queue_Object *self)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
kqueue_queue_get_closed(kqueue_queue_Object *self)
|
||||
kqueue_queue_get_closed(kqueue_queue_Object *self, void *Py_UNUSED(ignored))
|
||||
{
|
||||
if (self->kqfd < 0)
|
||||
Py_RETURN_TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue