[pypy-svn] r78853 - pypy/branch/fast-forward/pypy/module/cpyext/include

afa at codespeak.net afa at codespeak.net
Mon Nov 8 00:12:55 CET 2010


Author: afa
Date: Mon Nov  8 00:12:46 2010
New Revision: 78853

Modified:
   pypy/branch/fast-forward/pypy/module/cpyext/include/object.h
Log:
Add a dummy PyGC_Head structure


Modified: pypy/branch/fast-forward/pypy/module/cpyext/include/object.h
==============================================================================
--- pypy/branch/fast-forward/pypy/module/cpyext/include/object.h	(original)
+++ pypy/branch/fast-forward/pypy/module/cpyext/include/object.h	Mon Nov  8 00:12:46 2010
@@ -459,6 +459,11 @@
 #define PyObject_GC_New(type, typeobj) \
                 ( (type *) _PyObject_GC_New(typeobj) )
 
+/* A dummy PyGC_Head, just to please some tests. Don't use it! */
+typedef union _gc_head {
+    char dummy;
+} PyGC_Head;
+
 /* Utility macro to help write tp_traverse functions.
  * To use this macro, the tp_traverse function must name its arguments
  * "visit" and "arg".  This is intended to keep tp_traverse functions



More information about the Pypy-commit mailing list