diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-05-08 01:17:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 01:17:37 (GMT) |
commit | 4d4be477055d0f9e415407bcd193788fae04dc11 (patch) | |
tree | 5940271bc93dc31e45cc134812c58ba45410d0be /Modules/clinic | |
parent | 092f9ddb5e85665552c8207972cd393d492f764e (diff) | |
download | cpython-4d4be477055d0f9e415407bcd193788fae04dc11.zip cpython-4d4be477055d0f9e415407bcd193788fae04dc11.tar.gz cpython-4d4be477055d0f9e415407bcd193788fae04dc11.tar.bz2 |
Do not use Py_ssize_clean_t (GH-25940)
Diffstat (limited to 'Modules/clinic')
-rw-r--r-- | Modules/clinic/_dbmmodule.c.h | 11 | ||||
-rw-r--r-- | Modules/clinic/_gdbmmodule.c.h | 6 | ||||
-rw-r--r-- | Modules/clinic/unicodedata.c.h | 6 |
3 files changed, 11 insertions, 12 deletions
diff --git a/Modules/clinic/_dbmmodule.c.h b/Modules/clinic/_dbmmodule.c.h index af288c2..b50db5d 100644 --- a/Modules/clinic/_dbmmodule.c.h +++ b/Modules/clinic/_dbmmodule.c.h @@ -60,7 +60,7 @@ PyDoc_STRVAR(_dbm_dbm_get__doc__, static PyObject * _dbm_dbm_get_impl(dbmobject *self, PyTypeObject *cls, const char *key, - Py_ssize_clean_t key_length, PyObject *default_value); + Py_ssize_t key_length, PyObject *default_value); static PyObject * _dbm_dbm_get(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) @@ -69,7 +69,7 @@ _dbm_dbm_get(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize static const char * const _keywords[] = {"", "", NULL}; static _PyArg_Parser _parser = {"s#|O:get", _keywords, 0}; const char *key; - Py_ssize_clean_t key_length; + Py_ssize_t key_length; PyObject *default_value = Py_None; if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, @@ -95,8 +95,7 @@ PyDoc_STRVAR(_dbm_dbm_setdefault__doc__, static PyObject * _dbm_dbm_setdefault_impl(dbmobject *self, PyTypeObject *cls, const char *key, - Py_ssize_clean_t key_length, - PyObject *default_value); + Py_ssize_t key_length, PyObject *default_value); static PyObject * _dbm_dbm_setdefault(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) @@ -105,7 +104,7 @@ _dbm_dbm_setdefault(dbmobject *self, PyTypeObject *cls, PyObject *const *args, P static const char * const _keywords[] = {"", "", NULL}; static _PyArg_Parser _parser = {"s#|O:setdefault", _keywords, 0}; const char *key; - Py_ssize_clean_t key_length; + Py_ssize_t key_length; PyObject *default_value = NULL; if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, @@ -187,4 +186,4 @@ skip_optional: exit: return return_value; } -/*[clinic end generated code: output=6947b1115df66f7c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=13b6d821416be228 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_gdbmmodule.c.h b/Modules/clinic/_gdbmmodule.c.h index ffd2179..0604451 100644 --- a/Modules/clinic/_gdbmmodule.c.h +++ b/Modules/clinic/_gdbmmodule.c.h @@ -170,7 +170,7 @@ PyDoc_STRVAR(_gdbm_gdbm_nextkey__doc__, static PyObject * _gdbm_gdbm_nextkey_impl(gdbmobject *self, PyTypeObject *cls, const char *key, - Py_ssize_clean_t key_length); + Py_ssize_t key_length); static PyObject * _gdbm_gdbm_nextkey(gdbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) @@ -179,7 +179,7 @@ _gdbm_gdbm_nextkey(gdbmobject *self, PyTypeObject *cls, PyObject *const *args, P static const char * const _keywords[] = {"", NULL}; static _PyArg_Parser _parser = {"s#:nextkey", _keywords, 0}; const char *key; - Py_ssize_clean_t key_length; + Py_ssize_t key_length; if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, &key, &key_length)) { @@ -340,4 +340,4 @@ skip_optional: exit: return return_value; } -/*[clinic end generated code: output=e84bc6ac82fcb6d4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c3ee3ad64a2f331f input=a9049054013a1b77]*/ diff --git a/Modules/clinic/unicodedata.c.h b/Modules/clinic/unicodedata.c.h index 4251db2..17f2e00 100644 --- a/Modules/clinic/unicodedata.c.h +++ b/Modules/clinic/unicodedata.c.h @@ -542,14 +542,14 @@ PyDoc_STRVAR(unicodedata_UCD_lookup__doc__, static PyObject * unicodedata_UCD_lookup_impl(PyObject *self, const char *name, - Py_ssize_clean_t name_length); + Py_ssize_t name_length); static PyObject * unicodedata_UCD_lookup(PyObject *self, PyObject *arg) { PyObject *return_value = NULL; const char *name; - Py_ssize_clean_t name_length; + Py_ssize_t name_length; if (!PyArg_Parse(arg, "s#:lookup", &name, &name_length)) { goto exit; @@ -559,4 +559,4 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=10c23477dbe8a202 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a3c0eb84eda47b2d input=a9049054013a1b77]*/ |