From: Stefan Behnel Date: Fri, 9 Oct 2009 14:40:47 +0000 (+0200) Subject: make ref-count function declarations in Includes/python_ref.pxd actually usable X-Git-Tag: 0.13.beta0~2^2~121^2~100 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f682f9b05460e225ac1c048b938349c387a341c;p=cython.git make ref-count function declarations in Includes/python_ref.pxd actually usable --- diff --git a/Cython/Includes/python_ref.pxd b/Cython/Includes/python_ref.pxd index e9b17411..d6cde572 100644 --- a/Cython/Includes/python_ref.pxd +++ b/Cython/Includes/python_ref.pxd @@ -3,7 +3,6 @@ cdef extern from "Python.h": ctypedef struct PyObject: Py_ssize_t ob_refcnt PyTypeObject *ob_type - ctypedef struct FILE ##################################################################### @@ -15,7 +14,7 @@ cdef extern from "Python.h": # be NULL; if you aren't sure that it isn't NULL, use # Py_XINCREF(). - void Py_XINCREF(object o) + void Py_XINCREF(PyObject* o) # Increment the reference count for object o. The object may be NULL, in which case the macro has no effect. void Py_DECREF(object o) @@ -36,13 +35,13 @@ cdef extern from "Python.h": # temporary variable, update the list data structure, and then # call Py_DECREF() for the temporary variable. - void Py_XDECREF(object o) + void Py_XDECREF(PyObject* o) # Decrement the reference count for object o. The object may be # NULL, in which case the macro has no effect; otherwise the # effect is the same as for Py_DECREF(), and the same warning # applies. - void Py_CLEAR(object o) + void Py_CLEAR(PyObject* o) # Decrement the reference count for object o. The object may be # NULL, in which case the macro has no effect; otherwise the # effect is the same as for Py_DECREF(), except that the argument