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
fa764071
Commit
fa764071
authored
Aug 04, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed confusing dead code
parent
3cc00685
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+4
-15
No files found.
Cython/Compiler/ModuleNode.py
View file @
fa764071
...
@@ -1189,27 +1189,16 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1189,27 +1189,16 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
code
.
putln
(
"}"
)
"}"
)
# Do not traverse memoryview attributes of memoryview slices
# Traverse buffer exporting objects.
# Note: not traversing memoryview attributes of memoryview slices!
# When triggered by the GC, it would cause multiple visits (gc_refs
# When triggered by the GC, it would cause multiple visits (gc_refs
# subtractions which is not matched by its reference count!)
# subtractions which is not matched by its reference count!)
for
entry
in
py_buffers
:
# + memoryview_slices:
for
entry
in
py_buffers
:
if
entry
.
type
==
PyrexTypes
.
c_py_buffer_type
:
cname
=
entry
.
cname
+
".obj"
cname
=
entry
.
cname
+
".obj"
else
:
# traverse the memoryview object, which should traverse the
# object exposing the buffer
# cname = entry.cname + ".memview"
pass
code
.
putln
(
"if (p->%s) {"
%
cname
)
code
.
putln
(
"if (p->%s) {"
%
cname
)
code
.
putln
(
"e = (*v)(p->%s, a); if (e) return e;"
%
cname
)
code
.
putln
(
"e = (*v)(p->%s, a); if (e) return e;"
%
cname
)
code
.
putln
(
"}"
)
code
.
putln
(
"}"
)
#if cclass_entry.cname == '__pyx_memoryviewslice':
# code.putln("if (p->from_slice.memview) {")
# code.putln( "e = (*v)((PyObject *) p->from_slice.memview, a); if (e) return e;")
# code.putln("}")
code
.
putln
(
code
.
putln
(
"return 0;"
)
"return 0;"
)
code
.
putln
(
code
.
putln
(
...
...
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