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
Gwenaël Samain
cython
Commits
008e1f62
Commit
008e1f62
authored
May 20, 2012
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arrays use unamed fields, require non-standard (C11) extension.
parent
3bd45ec2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Cython/Utility/arrayarray.h
Cython/Utility/arrayarray.h
+2
-4
runtests.py
runtests.py
+2
-2
No files found.
Cython/Utility/arrayarray.h
View file @
008e1f62
...
...
@@ -14,8 +14,6 @@
#ifndef _ARRAYARRAY_H
#define _ARRAYARRAY_H
#include <Python.h>
struct
arrayobject
;
/* Forward */
/* All possible arraydescr values are defined in the vector "descriptors"
...
...
@@ -60,10 +58,10 @@ typedef struct arrayobject {
struct
arraydescr
*
ob_descr
;
#if PY_VERSION_HEX >= 0x02040000
PyObject
*
weakreflist
;
/* List of weak references */
#endif
#if PY_VERSION_HEX >= 0x03000000
int
ob_exports
;
/* Number of exported buffers */
#endif
#endif
}
arrayobject
;
...
...
@@ -73,7 +71,7 @@ typedef struct arrayobject {
* fast creation of a new array
*/
inline
PyObject
*
newarrayobject
(
PyTypeObject
*
type
,
Py_ssize_t
size
,
CYTHON_INLINE
PyObject
*
newarrayobject
(
PyTypeObject
*
type
,
Py_ssize_t
size
,
struct
arraydescr
*
descr
)
{
arrayobject
*
op
;
size_t
nbytes
;
...
...
runtests.py
View file @
008e1f62
...
...
@@ -84,8 +84,8 @@ def update_numpy_extension(ext):
ext
.
include_dirs
.
append
(
numpy
.
get_include
())
def
update_pyarray_extension
(
ext
):
ext
.
include_dirs
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
DISTDIR
),
"Cython/Includes/cpython"
)
)
# See http://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html#Unnamed-Fields
ext
.
extra_compile_args
.
append
(
'-fms-extensions'
)
def
update_openmp_extension
(
ext
):
ext
.
openmp
=
True
...
...
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