diff options
author | Georg Brandl <georg@python.org> | 2006-03-30 11:57:00 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-03-30 11:57:00 (GMT) |
commit | 347b30042b68e80b245a03b23cb616024ecb1f1e (patch) | |
tree | 56c43f8b23f0ec425aa3c122b5b7eca975770e62 /Objects/cobject.c | |
parent | 3987df5adf6ce821a290bd6e741fbcd8e0589fd8 (diff) | |
download | cpython-347b30042b68e80b245a03b23cb616024ecb1f1e.zip cpython-347b30042b68e80b245a03b23cb616024ecb1f1e.tar.gz cpython-347b30042b68e80b245a03b23cb616024ecb1f1e.tar.bz2 |
Remove unnecessary casts in type object initializers.
Diffstat (limited to 'Objects/cobject.c')
-rw-r--r-- | Objects/cobject.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/Objects/cobject.c b/Objects/cobject.c index f764a1d..b2cae9a 100644 --- a/Objects/cobject.c +++ b/Objects/cobject.c @@ -136,25 +136,26 @@ mechanism to link to one another."); PyTypeObject PyCObject_Type = { PyObject_HEAD_INIT(&PyType_Type) - 0, /*ob_size*/ - "PyCObject", /*tp_name*/ - sizeof(PyCObject), /*tp_basicsize*/ - 0, /*tp_itemsize*/ + 0, /*ob_size*/ + "PyCObject", /*tp_name*/ + sizeof(PyCObject), /*tp_basicsize*/ + 0, /*tp_itemsize*/ /* methods */ - (destructor)PyCObject_dealloc, /*tp_dealloc*/ - (printfunc)0, /*tp_print*/ - (getattrfunc)0, /*tp_getattr*/ - (setattrfunc)0, /*tp_setattr*/ - (cmpfunc)0, /*tp_compare*/ - (reprfunc)0, /*tp_repr*/ - 0, /*tp_as_number*/ - 0, /*tp_as_sequence*/ - 0, /*tp_as_mapping*/ - (hashfunc)0, /*tp_hash*/ - (ternaryfunc)0, /*tp_call*/ - (reprfunc)0, /*tp_str*/ - - /* Space for future expansion */ - 0L,0L,0L,0L, - PyCObject_Type__doc__ /* Documentation string */ + (destructor)PyCObject_dealloc, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + 0, /*tp_as_number*/ + 0, /*tp_as_sequence*/ + 0, /*tp_as_mapping*/ + 0, /*tp_hash*/ + 0, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + 0, /*tp_as_buffer*/ + 0, /*tp_flags*/ + PyCObject_Type__doc__ /*tp_doc*/ }; |