Mailing List Archive

python/dist/src/Objects object.c,2.170,2.171
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv19023/Objects

Modified Files:
object.c
Log Message:
Move PyObject_Malloc and PyObject_Free to obmalloc.c.


Index: object.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/object.c,v
retrieving revision 2.170
retrieving revision 2.171
diff -C2 -d -r2.170 -r2.171
*** object.c 3 Apr 2002 22:41:51 -0000 2.170
--- object.c 12 Apr 2002 03:08:42 -0000 2.171
***************
*** 138,141 ****
--- 138,143 ----
}

+ /* for binary compatibility with 2.2 */
+ #undef _PyObject_Del
void
_PyObject_Del(PyObject *op)
***************
*** 1914,1938 ****
{
PyMem_FREE(p);
- }
-
-
- /* Python's object malloc wrappers (see objimpl.h) */
-
- void *
- PyObject_Malloc(size_t nbytes)
- {
- return PyObject_MALLOC(nbytes);
- }
-
- void *
- PyObject_Realloc(void *p, size_t nbytes)
- {
- return PyObject_REALLOC(p, nbytes);
- }
-
- void
- PyObject_Free(void *p)
- {
- PyObject_FREE(p);
}

--- 1916,1919 ----