From: Neil Schemenauer Date: Fri, 12 Apr 2002 01:57:06 +0000 (+0000) Subject: Change the type of the tp_free from 'destructor' to 'freefunc'. X-Git-Tag: v2.3c1~6033 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6d1ea1749344165f8cf1cdfdf6cd1bdb5c4474b;p=python Change the type of the tp_free from 'destructor' to 'freefunc'. --- diff --git a/Include/object.h b/Include/object.h index a85905fe2a..a742fd8764 100644 --- a/Include/object.h +++ b/Include/object.h @@ -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 */