mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user