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
Boxiang Sun
cython
Commits
51ae34df
Commit
51ae34df
authored
Oct 30, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some missing CPython 2.x declarations
parent
611f4187
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Cython/Includes/cpython/int.pxd
Cython/Includes/cpython/int.pxd
+10
-0
No files found.
Cython/Includes/cpython/int.pxd
View file @
51ae34df
...
@@ -46,6 +46,12 @@ cdef extern from "Python.h":
...
@@ -46,6 +46,12 @@ cdef extern from "Python.h":
object
PyInt_FromSsize_t
(
Py_ssize_t
ival
)
object
PyInt_FromSsize_t
(
Py_ssize_t
ival
)
# Return value: New reference.
# Return value: New reference.
# Create a new integer object with a value of ival. If the value
# Create a new integer object with a value of ival. If the value
# is larger than LONG_MAX or smaller than LONG_MIN, a long integer
# object is returned.
object
PyInt_FromSize_t
(
size_t
ival
)
# Return value: New reference.
# Create a new integer object with a value of ival. If the value
# exceeds LONG_MAX, a long integer object is returned.
# exceeds LONG_MAX, a long integer object is returned.
long
PyInt_AsLong
(
object
io
)
except
?
-
1
long
PyInt_AsLong
(
object
io
)
except
?
-
1
...
@@ -77,3 +83,7 @@ cdef extern from "Python.h":
...
@@ -77,3 +83,7 @@ cdef extern from "Python.h":
long
PyInt_GetMax
()
long
PyInt_GetMax
()
# Return the system's idea of the largest integer it can handle
# Return the system's idea of the largest integer it can handle
# (LONG_MAX, as defined in the system header files).
# (LONG_MAX, as defined in the system header files).
int
PyInt_ClearFreeList
()
# Clear the integer free list. Return the number of items that could not be freed.
# New in version 2.6.
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