[Python-checkins] python/dist/src/Include object.h,2.125,2.126
theller at users.sourceforge.net
theller at users.sourceforge.net
Thu Apr 22 13:23:32 EDT 2004
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8016
Modified Files:
object.h
Log Message:
Two new public API functions, Py_IncRef and Py_DecRef. Useful for
dynamic embedders of Python.
Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.125
retrieving revision 2.126
diff -C2 -d -r2.125 -r2.126
*** object.h 9 Nov 2003 16:38:39 -0000 2.125
--- object.h 22 Apr 2004 17:23:30 -0000 2.126
***************
*** 626,629 ****
--- 626,636 ----
/*
+ These are provided as conveniences to Python runtime embedders, so that
+ they can have object code that is not dependent on Python compilation flags.
+ */
+ PyAPI_FUNC(void) Py_IncRef(PyObject *);
+ PyAPI_FUNC(void) Py_DecRef(PyObject *);
+
+ /*
_Py_NoneStruct is an object of undefined type which can be used in contexts
where NULL (nil) is not suitable (since NULL often means 'error').
More information about the Python-checkins
mailing list