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
b4509b11
Commit
b4509b11
authored
Mar 07, 2017
by
Robert Bradshaw
Committed by
GitHub
Mar 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1622 from jdemeyer/tp_traverse_pyobject
Pass first arg of visitproc as PyObject*
parents
7392f606
b8d0fcbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+2
-3
No files found.
Cython/Compiler/ModuleNode.py
View file @
b4509b11
...
...
@@ -1495,10 +1495,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
for
entry
in
py_attrs
:
var_code
=
"p->%s"
%
entry
.
cname
var_as_pyobject
=
PyrexTypes
.
typecast
(
py_object_type
,
entry
.
type
,
var_code
)
code
.
putln
(
"if (%s) {"
%
var_code
)
if
entry
.
type
.
is_extension_type
:
var_code
=
"((PyObject*)%s)"
%
var_code
code
.
putln
(
"e = (*v)(%s, a); if (e) return e;"
%
var_code
)
code
.
putln
(
"e = (*v)(%s, a); if (e) return e;"
%
var_as_pyobject
)
code
.
putln
(
"}"
)
# Traverse buffer exporting objects.
...
...
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