Change the type of the tp_free from 'destructor' to 'freefunc'.

This commit is contained in:
Neil Schemenauer 2002-04-12 01:57:06 +00:00
parent 2bbdba3c00
commit f6d1ea1749
1 changed files with 2 additions and 1 deletions

View File

@ -199,6 +199,7 @@ typedef struct {
} PyBufferProcs;
typedef void (*freefunc)(void *);
typedef void (*destructor)(PyObject *);
typedef int (*printfunc)(PyObject *, FILE *, int);
typedef PyObject *(*getattrfunc)(PyObject *, char *);
@ -284,7 +285,7 @@ typedef struct _typeobject {
initproc tp_init;
allocfunc tp_alloc;
newfunc tp_new;
destructor tp_free; /* Low-level free-memory routine */
freefunc tp_free; /* Low-level free-memory routine */
inquiry tp_is_gc; /* For PyObject_IS_GC */
PyObject *tp_bases;
PyObject *tp_mro; /* method resolution order */