[Python-checkins] python/dist/src/Objects dictobject.c,2.123,2.124
nascheme@sourceforge.net
nascheme@sourceforge.net
Thu, 11 Apr 2002 19:43:02 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv12947/Objects
Modified Files:
dictobject.c
Log Message:
PyObject_GC_Del and PyObject_Del can now be used as a function
designators.
Remove PyMalloc_New.
Index: dictobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/dictobject.c,v
retrieving revision 2.123
retrieving revision 2.124
diff -C2 -d -r2.123 -r2.124
*** dictobject.c 3 Apr 2002 22:41:51 -0000 2.123
--- dictobject.c 12 Apr 2002 02:43:00 -0000 2.124
***************
*** 1829,1833 ****
PyType_GenericAlloc, /* tp_alloc */
dict_new, /* tp_new */
! _PyObject_GC_Del, /* tp_free */
};
--- 1829,1833 ----
PyType_GenericAlloc, /* tp_alloc */
dict_new, /* tp_new */
! PyObject_GC_Del, /* tp_free */
};
***************
*** 1889,1893 ****
{
dictiterobject *di;
! di = PyMalloc_New(dictiterobject, &PyDictIter_Type);
if (di == NULL)
return NULL;
--- 1889,1893 ----
{
dictiterobject *di;
! di = PyObject_New(dictiterobject, &PyDictIter_Type);
if (di == NULL)
return NULL;
***************
*** 1904,1908 ****
{
Py_DECREF(di->di_dict);
! PyMalloc_Del(di);
}
--- 1904,1908 ----
{
Py_DECREF(di->di_dict);
! PyObject_Del(di);
}