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
d2081a55
Commit
d2081a55
authored
May 10, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #224 from gandalf013/pyssize_t
int -> Py_ssize_t in cpython pxd files
parents
d905deb9
0eda1140
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
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
No files found.
Cython/Includes/cpython/buffer.pxd
View file @
d2081a55
...
...
@@ -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 @
d2081a55
...
...
@@ -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 @
d2081a55
...
...
@@ -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 @
d2081a55
...
...
@@ -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.
...
...
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