Commit f949274e authored by Stefan Behnel's avatar Stefan Behnel

add some missing CPython 2.x declarations

--HG--
extra : transplant_source : %D2%CB%B8%BF%F3%B7t%81%3F%ABQ%0D%D4%60%0B%90%40%E3%D9%CD
parent bf447860
...@@ -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.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment