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
Kirill Smelkov
cython
Commits
b55d368d
Commit
b55d368d
authored
Apr 06, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some more type slow declarations
parent
ec8ba63b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Cython/Includes/cpython/object.pxd
Cython/Includes/cpython/object.pxd
+8
-1
No files found.
Cython/Includes/cpython/object.pxd
View file @
b55d368d
...
...
@@ -19,6 +19,9 @@ cdef extern from "Python.h":
ctypedef
int
(
*
objobjargproc
)(
object
,
object
,
object
)
ctypedef
int
(
*
objobjproc
)(
object
,
object
)
ctypedef
Py_hash_t
(
*
hashfunc
)(
object
)
ctypedef
object
(
*
reprfunc
)(
object
)
# The following functions use 'PyObject*' as first argument instead of 'object' to prevent
# accidental reference counting when calling them during a garbage collection run.
ctypedef
void
(
*
destructor
)(
PyObject
*
)
...
...
@@ -35,10 +38,14 @@ cdef extern from "Python.h":
newfunc
tp_new
destructor
tp_dealloc
ternaryfunc
tp_call
traverseproc
tp_traverse
inquiry
tp_clear
ternaryfunc
tp_call
hashfunc
tp_hash
reprfunc
tp_str
reprfunc
tp_repr
ctypedef
struct
PyObject
:
Py_ssize_t
ob_refcnt
PyTypeObject
*
ob_type
...
...
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