mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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
|
@ -1141,14 +1141,14 @@ error:
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
token_get_var(PyContextToken *self)
|
||||
token_get_var(PyContextToken *self, void *Py_UNUSED(ignored))
|
||||
{
|
||||
Py_INCREF(self->tok_var);
|
||||
return (PyObject *)self->tok_var;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
token_get_old_value(PyContextToken *self)
|
||||
token_get_old_value(PyContextToken *self, void *Py_UNUSED(ignored))
|
||||
{
|
||||
if (self->tok_oldval == NULL) {
|
||||
return get_token_missing();
|
||||
|
|
|
@ -178,11 +178,12 @@ tb_traverse(PyTracebackObject *tb, visitproc visit, void *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
static int
|
||||
tb_clear(PyTracebackObject *tb)
|
||||
{
|
||||
Py_CLEAR(tb->tb_next);
|
||||
Py_CLEAR(tb->tb_frame);
|
||||
return 0;
|
||||
}
|
||||
|
||||
PyTypeObject PyTraceBack_Type = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue