mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix misleading mentions of tp_size in comments (GH-9093)
Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
This commit is contained in:
parent
d545869d08
commit
0e0bc4e221
15 changed files with 21 additions and 21 deletions
|
@ -529,7 +529,7 @@ static PyMemberDef SHA_members[] = {
|
|||
static PyTypeObject SHA224type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
"_sha256.sha224", /*tp_name*/
|
||||
sizeof(SHAobject), /*tp_size*/
|
||||
sizeof(SHAobject), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
/* methods */
|
||||
SHA_dealloc, /*tp_dealloc*/
|
||||
|
@ -563,7 +563,7 @@ static PyTypeObject SHA224type = {
|
|||
static PyTypeObject SHA256type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
"_sha256.sha256", /*tp_name*/
|
||||
sizeof(SHAobject), /*tp_size*/
|
||||
sizeof(SHAobject), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
/* methods */
|
||||
SHA_dealloc, /*tp_dealloc*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue