Two new public API functions, Py_IncRef and Py_DecRef. Useful for

dynamic embedders of Python.
This commit is contained in:
Thomas Heller 2004-04-22 17:23:49 +00:00
parent 1a9d32b8d4
commit 1328b52c6f
4 changed files with 28 additions and 0 deletions

View file

@ -146,6 +146,18 @@ _Py_NegativeRefcount(const char *fname, int lineno, PyObject *op)
#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)
{