summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-12 01:57:06 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-12 01:57:06 (GMT)
commitf6d1ea1749344165f8cf1cdfdf6cd1bdb5c4474b (patch)
tree6a8e731be389c795677bb2f1338ed989bf05c731 /Include
parent2bbdba3c00c33453a2591ffce798c870d9a0ae22 (diff)
downloadcpython-f6d1ea1749344165f8cf1cdfdf6cd1bdb5c4474b.zip
cpython-f6d1ea1749344165f8cf1cdfdf6cd1bdb5c4474b.tar.gz
cpython-f6d1ea1749344165f8cf1cdfdf6cd1bdb5c4474b.tar.bz2
Change the type of the tp_free from 'destructor' to 'freefunc'.
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/object.h b/Include/object.h
index a85905f..a742fd8 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 */