]> granicus.if.org Git - python/commitdiff
Change the type of the tp_free from 'destructor' to 'freefunc'.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 12 Apr 2002 01:57:06 +0000 (01:57 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 12 Apr 2002 01:57:06 +0000 (01:57 +0000)
Include/object.h

index a85905fe2abe9c245ee32d17c2e45e1814fc06c2..a742fd8764a82cb345e9b1b030ce4ce86a382fa1 100644 (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 */