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
d59a9c3a
Commit
d59a9c3a
authored
Sep 05, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use non-const pointers instead of FakeReference for pointer types
parent
2be36bce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+5
-0
No files found.
Cython/Compiler/PyrexTypes.py
View file @
d59a9c3a
...
...
@@ -2906,6 +2906,11 @@ class CFakeReferenceType(CReferenceType):
def
declaration_code
(
self
,
entity_code
,
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
):
#print "CReferenceType.declaration_code: pointer to", self.base_type ###
if
self
.
ref_base_type
.
is_ptr
or
self
.
ref_base_type
.
is_cyp_class
:
base_type
=
self
.
ref_base_type
if
self
.
ref_base_type
.
is_const
:
base_type
=
base_type
.
cv_base_type
return
base_type
.
declaration_code
(
entity_code
,
for_display
,
dll_linkage
,
pyrex
)
return
"__Pyx_FakeReference<%s> %s"
%
(
self
.
ref_base_type
.
declaration_code
(
''
),
entity_code
)
...
...
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