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
Boxiang Sun
cython
Commits
088bf12c
Commit
088bf12c
authored
Aug 11, 2009
by
Kurt Smith
Committed by
Mark Florisson
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure util code isn't declared twice in MemoryViewSliceType
parent
12c871f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+9
-4
No files found.
Cython/Compiler/PyrexTypes.py
View file @
088bf12c
...
...
@@ -454,8 +454,7 @@ static __Pyx_memviewslice %s(const __Pyx_memviewslice); /* proto */
c_copy_util_code
.
impl
+=
\
MemoryView
.
get_copy_contents_code
(
self
,
to_memview_c
,
copy_contents_name_c
)
if
(
MemoryView
.
get_copy_contents_code
(
self
,
to_memview_c
,
copy_contents_name_c
)
!=
MemoryView
.
get_copy_contents_code
(
self
,
to_memview_f
,
copy_contents_name_f
)):
if
copy_contents_name_c
!=
copy_contents_name_f
:
f_copy_util_code
.
proto
+=
(
'static int %s'
'(const __Pyx_memviewslice *,'
...
...
@@ -465,8 +464,14 @@ static __Pyx_memviewslice %s(const __Pyx_memviewslice); /* proto */
f_copy_util_code
.
impl
+=
\
MemoryView
.
get_copy_contents_code
(
self
,
to_memview_f
,
copy_contents_name_f
)
self
.
env
.
use_utility_code
(
c_copy_util_code
)
self
.
env
.
use_utility_code
(
c_copy_util_code
)
c_copy_used
=
[
1
for
util_code
in
self
.
env
.
global_scope
().
utility_code_list
if
c_copy_util_code
.
proto
==
util_code
.
proto
]
f_copy_used
=
[
1
for
util_code
in
self
.
env
.
global_scope
().
utility_code_list
if
f_copy_util_code
.
proto
==
util_code
.
proto
]
if
not
c_copy_used
:
self
.
env
.
use_utility_code
(
c_copy_util_code
)
if
not
f_copy_used
:
self
.
env
.
use_utility_code
(
f_copy_util_code
)
# ensure the right util code is used
MemoryView
.
use_cython_array
(
self
.
env
)
...
...
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