diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2018-09-10 16:46:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-09-10 16:46:08 (GMT) |
commit | 0e0bc4e221f592f305d335faf5f8046484eb9238 (patch) | |
tree | edd0715556a68ab5bd9037a2a627bb8a62d9ef6a /Modules/ossaudiodev.c | |
parent | d545869d084e70d4838310e79b52a25a72a1ca56 (diff) | |
download | cpython-0e0bc4e221f592f305d335faf5f8046484eb9238.zip cpython-0e0bc4e221f592f305d335faf5f8046484eb9238.tar.gz cpython-0e0bc4e221f592f305d335faf5f8046484eb9238.tar.bz2 |
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.
Diffstat (limited to 'Modules/ossaudiodev.c')
-rw-r--r-- | Modules/ossaudiodev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c index 58ee71f..150a14e 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -964,7 +964,7 @@ oss_getattro(oss_audio_t *self, PyObject *nameobj) static PyTypeObject OSSAudioType = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "ossaudiodev.oss_audio_device", /*tp_name*/ - sizeof(oss_audio_t), /*tp_size*/ + sizeof(oss_audio_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ (destructor)oss_dealloc, /*tp_dealloc*/ @@ -996,7 +996,7 @@ static PyTypeObject OSSAudioType = { static PyTypeObject OSSMixerType = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "ossaudiodev.oss_mixer_device", /*tp_name*/ - sizeof(oss_mixer_t), /*tp_size*/ + sizeof(oss_mixer_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ (destructor)oss_mixer_dealloc, /*tp_dealloc*/ |