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
b5b650cb
Commit
b5b650cb
authored
May 10, 2013
by
Alok Singhal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
int -> Py_ssize_t in cpython pxd files
parent
d905deb9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
Cython/Includes/cpython/buffer.pxd
Cython/Includes/cpython/buffer.pxd
+2
-2
Cython/Includes/cpython/sequence.pxd
Cython/Includes/cpython/sequence.pxd
+2
-2
Cython/Includes/cpython/set.pxd
Cython/Includes/cpython/set.pxd
+2
-2
Cython/Includes/cpython/tuple.pxd
Cython/Includes/cpython/tuple.pxd
+2
-2
Cython/Includes/cpython/unicode.pxd
Cython/Includes/cpython/unicode.pxd
+1
-1
No files found.
Cython/Includes/cpython/buffer.pxd
View file @
b5b650cb
...
...
@@ -56,7 +56,7 @@ cdef extern from "Python.h":
void
*
PyBuffer_GetPointer
(
Py_buffer
*
view
,
Py_ssize_t
*
indices
)
# ??
in
t
PyBuffer_SizeFromFormat
(
char
*
)
# actually const char
Py_ssize_
t
PyBuffer_SizeFromFormat
(
char
*
)
# actually const char
# Return the implied ~Py_buffer.itemsize from the struct-stype
# ~Py_buffer.format
...
...
@@ -90,7 +90,7 @@ cdef extern from "Python.h":
void
PyBuffer_FillContiguousStrides
(
int
ndims
,
Py_ssize_t
*
shape
,
Py_ssize_t
*
strides
,
in
t
itemsize
,
Py_ssize_
t
itemsize
,
char
fort
)
# Fill the strides array with byte-strides of a contiguous
# (Fortran-style if fort is 'F' or C-style otherwise) array of the
...
...
Cython/Includes/cpython/sequence.pxd
View file @
b5b650cb
...
...
@@ -84,7 +84,7 @@ cdef extern from "Python.h":
# value, return 1, otherwise return 0. On error, return -1. This
# is equivalent to the Python expression "value in o".
in
t
PySequence_Index
(
object
o
,
object
value
)
except
-
1
Py_ssize_
t
PySequence_Index
(
object
o
,
object
value
)
except
-
1
# Return the first index i for which o[i] == value. On error,
# return -1. This is equivalent to the Python expression
# "o.index(value)".
...
...
@@ -126,7 +126,7 @@ cdef extern from "Python.h":
# PySequence_Check(o) is true and without adjustment for negative
# indices.
in
t
PySequence_Fast_GET_SIZE
(
object
o
)
Py_ssize_
t
PySequence_Fast_GET_SIZE
(
object
o
)
# Returns the length of o, assuming that o was returned by
# PySequence_Fast() and that o is not NULL. The size can also be
# gotten by calling PySequence_Size() on o, but
...
...
Cython/Includes/cpython/set.pxd
View file @
b5b650cb
...
...
@@ -66,12 +66,12 @@ cdef extern from "Python.h":
# The following functions and macros are available for instances
# of set or frozenset or instances of their subtypes.
in
t
PySet_Size
(
object
anyset
)
except
-
1
Py_ssize_
t
PySet_Size
(
object
anyset
)
except
-
1
# Return the length of a set or frozenset object. Equivalent to
# "len(anyset)". Raises a PyExc_SystemError if anyset is not a
# set, frozenset, or an instance of a subtype.
in
t
PySet_GET_SIZE
(
object
anyset
)
Py_ssize_
t
PySet_GET_SIZE
(
object
anyset
)
# Macro form of PySet_Size() without error checking.
bint
PySet_Contains
(
object
anyset
,
object
key
)
except
-
1
...
...
Cython/Includes/cpython/tuple.pxd
View file @
b5b650cb
...
...
@@ -24,10 +24,10 @@ cdef extern from "Python.h":
# pointing to Python objects. "PyTuple_Pack(2, a, b)" is
# equivalent to "Py_BuildValue("(OO)", a, b)".
in
t
PyTuple_Size
(
object
p
)
except
-
1
Py_ssize_
t
PyTuple_Size
(
object
p
)
except
-
1
# Take a pointer to a tuple object, and return the size of that tuple.
in
t
PyTuple_GET_SIZE
(
object
p
)
Py_ssize_
t
PyTuple_GET_SIZE
(
object
p
)
# Return the size of the tuple p, which must be non-NULL and point
# to a tuple; no error checking is performed.
...
...
Cython/Includes/cpython/unicode.pxd
View file @
b5b650cb
...
...
@@ -377,7 +377,7 @@ cdef extern from *:
# consumed is not NULL, PyUnicode_DecodeMBCSStateful() will not
# decode trailing lead byte and the number of bytes that have been
# decoded will be stored in consumed. New in version 2.5.
object
PyUnicode_DecodeMBCSStateful
(
char
*
s
,
int
size
,
char
*
errors
,
in
t
*
consumed
)
object
PyUnicode_DecodeMBCSStateful
(
char
*
s
,
Py_ssize_t
size
,
char
*
errors
,
Py_ssize_
t
*
consumed
)
# Encode the Py_UNICODE buffer of the given size using MBCS and
# return a Python string object. Return NULL if an exception was
...
...
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