[Python-checkins] python/dist/src/Objects object.c,2.216,2.217
theller at users.sourceforge.net
theller at users.sourceforge.net
Thu Apr 22 13:23:52 EDT 2004
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8091
Modified Files:
object.c
Log Message:
Two new public API functions, Py_IncRef and Py_DecRef. Useful for
dynamic embedders of Python.
Index: object.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/object.c,v
retrieving revision 2.216
retrieving revision 2.217
diff -C2 -d -r2.216 -r2.217
*** object.c 21 Mar 2004 17:35:06 -0000 2.216
--- object.c 22 Apr 2004 17:23:49 -0000 2.217
***************
*** 147,150 ****
--- 147,162 ----
#endif /* Py_REF_DEBUG */
+ void
+ Py_IncRef(PyObject *o)
+ {
+ Py_XINCREF(o);
+ }
+
+ void
+ Py_DecRef(PyObject *o)
+ {
+ Py_XDECREF(o);
+ }
+
PyObject *
PyObject_Init(PyObject *op, PyTypeObject *tp)
More information about the Python-checkins
mailing list