Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
2f682f9b
Commit
2f682f9b
authored
Oct 09, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make ref-count function declarations in Includes/python_ref.pxd actually usable
parent
f1f99b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Cython/Includes/python_ref.pxd
Cython/Includes/python_ref.pxd
+3
-4
No files found.
Cython/Includes/python_ref.pxd
View file @
2f682f9b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment