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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
1f956c69
Commit
1f956c69
authored
Oct 14, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix new .pxd file and cimport it in python.pxd
parent
b0bf40a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Cython/Includes/python.pxd
Cython/Includes/python.pxd
+1
-0
Cython/Includes/python_cobject.pxd
Cython/Includes/python_cobject.pxd
+6
-6
No files found.
Cython/Includes/python.pxd
View file @
1f956c69
...
@@ -125,6 +125,7 @@ from python_mem cimport *
...
@@ -125,6 +125,7 @@ from python_mem cimport *
from
python_tuple
cimport
*
from
python_tuple
cimport
*
from
python_list
cimport
*
from
python_list
cimport
*
from
python_object
cimport
*
from
python_object
cimport
*
from
python_cobject
cimport
*
from
python_sequence
cimport
*
from
python_sequence
cimport
*
from
python_mapping
cimport
*
from
python_mapping
cimport
*
from
python_iterator
cimport
*
from
python_iterator
cimport
*
...
...
Cython/Includes/python_cobject.pxd
View file @
1f956c69
...
@@ -8,29 +8,29 @@ cdef extern from "Python.h":
...
@@ -8,29 +8,29 @@ cdef extern from "Python.h":
# the new Capsules API.
# the new Capsules API.
###########################################################################
###########################################################################
int
PyCObject_Check
(
object
p
)
¶
int
PyCObject_Check
(
object
p
)
# Return true if its argument is a PyCObject.
# Return true if its argument is a PyCObject.
object
PyCObject_FromVoidPtr
(
void
*
cobj
,
void
(
*
destr
)(
void
*
))
¶
object
PyCObject_FromVoidPtr
(
void
*
cobj
,
void
(
*
destr
)(
void
*
))
# Return value: New reference.
# Return value: New reference.
#
#
# Create a PyCObject from the void * cobj. The destr function will
# Create a PyCObject from the void * cobj. The destr function will
# be called when the object is reclaimed, unless it is NULL.
# be called when the object is reclaimed, unless it is NULL.
object
PyCObject_FromVoidPtrAndDesc
(
void
*
cobj
,
void
*
desc
,
void
(
*
destr
)(
void
*
,
void
*
))
¶
object
PyCObject_FromVoidPtrAndDesc
(
void
*
cobj
,
void
*
desc
,
void
(
*
destr
)(
void
*
,
void
*
))
# Return value: New reference.
# Return value: New reference.
#
#
# Create a PyCObject from the void * cobj. The destr function will
# Create a PyCObject from the void * cobj. The destr function will
# be called when the object is reclaimed. The desc argument can be
# be called when the object is reclaimed. The desc argument can be
# used to pass extra callback data for the destructor function.
# used to pass extra callback data for the destructor function.
void
*
PyCObject_AsVoidPtr
(
object
self
)
¶
void
*
PyCObject_AsVoidPtr
(
object
self
)
# Return the object void * that the PyCObject self was created with.
# Return the object void * that the PyCObject self was created with.
void
*
PyCObject_GetDesc
(
object
self
)
¶
void
*
PyCObject_GetDesc
(
object
self
)
# Return the description void * that the PyCObject self was created with.
# Return the description void * that the PyCObject self was created with.
int
PyCObject_SetVoidPtr
(
object
self
,
void
*
cobj
)
¶
int
PyCObject_SetVoidPtr
(
object
self
,
void
*
cobj
)
# Set the void pointer inside self to cobj. The PyCObject must not
# Set the void pointer inside self to cobj. The PyCObject must not
# have an associated destructor. Return true on success, false on
# have an associated destructor. Return true on success, false on
# failure.
# failure.
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