From 2f682f9b05460e225ac1c048b938349c387a341c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 9 Oct 2009 16:40:47 +0200 Subject: [PATCH] make ref-count function declarations in Includes/python_ref.pxd actually usable --- Cython/Includes/python_ref.pxd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.26.2