[pypy-svn] r74438 - in pypy/trunk/pypy/module/cpyext: . include

agaynor at codespeak.net agaynor at codespeak.net
Sat May 8 05:06:56 CEST 2010


Author: agaynor
Date: Sat May  8 05:06:55 2010
New Revision: 74438

Modified:
   pypy/trunk/pypy/module/cpyext/include/object.h
   pypy/trunk/pypy/module/cpyext/object.py
Log:
Added _PyObject_GC_Del as an alias for PyObject_GC_Del as it is in CPython.

Modified: pypy/trunk/pypy/module/cpyext/include/object.h
==============================================================================
--- pypy/trunk/pypy/module/cpyext/include/object.h	(original)
+++ pypy/trunk/pypy/module/cpyext/include/object.h	Sat May  8 05:06:55 2010
@@ -481,6 +481,7 @@
 /* PyPy internal ----------------------------------- */
 int PyPyType_Register(PyTypeObject *);
 #define PyObject_Length PyObject_Size
+#define _PyObject_GC_Del PyObject_GC_Del
 
 
 #ifdef __cplusplus

Modified: pypy/trunk/pypy/module/cpyext/object.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/object.py	(original)
+++ pypy/trunk/pypy/module/cpyext/object.py	Sat May  8 05:06:55 2010
@@ -46,7 +46,7 @@
 @cpython_api([rffi.VOIDP_real], lltype.Void)
 def PyObject_GC_Del(space, obj):
     PyObject_Del(space, obj)
-    
+
 @cpython_api([PyObject], lltype.Void)
 def PyObject_GC_Track(space, op):
     """Adds the object op to the set of container objects tracked by the



More information about the Pypy-commit mailing list