Mailing List Archive

python/dist/src/Include object.h,2.100,2.101
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv3676/Include

Modified Files:
object.h
Log Message:
Change the type of the tp_free from 'destructor' to 'freefunc'.


Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.100
retrieving revision 2.101
diff -C2 -d -r2.100 -r2.101
*** object.h 3 Apr 2002 22:41:50 -0000 2.100
--- object.h 12 Apr 2002 01:57:06 -0000 2.101
***************
*** 200,203 ****
--- 200,204 ----


+ typedef void (*freefunc)(void *);
typedef void (*destructor)(PyObject *);
typedef int (*printfunc)(PyObject *, FILE *, int);
***************
*** 285,289 ****
allocfunc tp_alloc;
newfunc tp_new;
! destructor tp_free; /* Low-level free-memory routine */
inquiry tp_is_gc; /* For PyObject_IS_GC */
PyObject *tp_bases;
--- 286,290 ----
allocfunc tp_alloc;
newfunc tp_new;
! freefunc tp_free; /* Low-level free-memory routine */
inquiry tp_is_gc; /* For PyObject_IS_GC */
PyObject *tp_bases;