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
8a4faf57
Commit
8a4faf57
authored
May 06, 2012
by
Andreas van Cranenburgh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change unsigned to Py_ssize_t, removed Py_UNICODE declaration.
parent
13d9929e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Cython/Includes/cpython/array.pxd
Cython/Includes/cpython/array.pxd
+1
-2
Cython/Includes/cpython/arrayarray.h
Cython/Includes/cpython/arrayarray.h
+1
-2
No files found.
Cython/Includes/cpython/array.pxd
View file @
8a4faf57
...
@@ -58,7 +58,6 @@ from cpython.ref cimport PyTypeObject
...
@@ -58,7 +58,6 @@ from cpython.ref cimport PyTypeObject
from
cpython.exc
cimport
PyErr_BadArgument
from
cpython.exc
cimport
PyErr_BadArgument
cdef
extern
from
"arrayarray.h"
:
cdef
extern
from
"arrayarray.h"
:
ctypedef
short
Py_UNICODE
ctypedef
class
array
.
array
[
object
arrayobject
]
ctypedef
class
array
.
array
[
object
arrayobject
]
ctypedef
object
GETF
(
array
a
,
Py_ssize_t
ix
)
ctypedef
object
GETF
(
array
a
,
Py_ssize_t
ix
)
ctypedef
object
SETF
(
array
a
,
Py_ssize_t
ix
,
object
o
)
ctypedef
object
SETF
(
array
a
,
Py_ssize_t
ix
,
object
o
)
...
@@ -73,7 +72,7 @@ cdef extern from "arrayarray.h":
...
@@ -73,7 +72,7 @@ cdef extern from "arrayarray.h":
cdef
:
cdef
:
PyTypeObject
*
ob_type
PyTypeObject
*
ob_type
unsigned
length
# == ob_size (by union)
Py_ssize_t
length
# == ob_size (by union)
arraydescr
*
ob_descr
# struct arraydescr *ob_descr;
arraydescr
*
ob_descr
# struct arraydescr *ob_descr;
# views of ob_item:
# views of ob_item:
...
...
Cython/Includes/cpython/arrayarray.h
View file @
8a4faf57
...
@@ -35,8 +35,7 @@ typedef struct arraydescr {
...
@@ -35,8 +35,7 @@ typedef struct arraydescr {
typedef
struct
arrayobject
{
typedef
struct
arrayobject
{
PyObject_HEAD
PyObject_HEAD
union
{
union
{
Py_ssize_t
ob_size
;
Py_ssize_t
ob_size
,
length
;
unsigned
length
;
};
};
union
{
union
{
char
*
ob_item
;
char
*
ob_item
;
...
...
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