From f6d1ea1749344165f8cf1cdfdf6cd1bdb5c4474b Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Fri, 12 Apr 2002 01:57:06 +0000 Subject: [PATCH] Change the type of the tp_free from 'destructor' to 'freefunc'. --- Include/object.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Include/object.h b/Include/object.h index a85905fe2ab..a742fd8764a 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 */