[Python-checkins] CVS: python/dist/src/Include object.h,2.54,2.55
Jeremy Hylton
python-dev@python.org
Fri, 23 Jun 2000 07:18:13 -0700
- Previous message: [Python-checkins] CVS: distutils/distutils file_util.py,1.3,1.4
- Next message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.86,2.87 dictobject.c,2.52,2.53 funcobject.c,2.20,2.21 listobject.c,2.73,2.74 tupleobject.c,2.36,2.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2798/Include
Modified Files:
object.h
Log Message:
Round 1 of Neil Schemenauer's GC patches:
This patch adds the type methods traverse and clear necessary for GC
implementation.
Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.54
retrieving revision 2.55
diff -C2 -r2.54 -r2.55
*** object.h 2000/04/24 15:40:45 2.54
--- object.h 2000/06/23 14:18:10 2.55
***************
*** 146,149 ****
--- 146,151 ----
typedef int (*getcharbufferproc) Py_PROTO((PyObject *, int, const char **));
typedef int (*objobjproc) Py_PROTO((PyObject *, PyObject *));
+ typedef int (*visitproc) Py_PROTO((PyObject *, void *));
+ typedef int (*traverseproc) Py_PROTO((PyObject *, visitproc, void *));
typedef struct {
***************
*** 244,250 ****
char *tp_doc; /* Documentation string */
/* More spares */
- long tp_xxx5;
- long tp_xxx6;
long tp_xxx7;
long tp_xxx8;
--- 246,256 ----
char *tp_doc; /* Documentation string */
+ /* call function for all accessible objects */
+ traverseproc tp_traverse;
+
+ /* delete references to contained objects */
+ inquiry tp_clear;
+
/* More spares */
long tp_xxx7;
long tp_xxx8;
- Previous message: [Python-checkins] CVS: distutils/distutils file_util.py,1.3,1.4
- Next message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.86,2.87 dictobject.c,2.52,2.53 funcobject.c,2.20,2.21 listobject.c,2.73,2.74 tupleobject.c,2.36,2.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]