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
2398c768
Commit
2398c768
authored
May 17, 2016
by
Robert Bradshaw
Committed by
Stefan Behnel
Jul 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup C++ buffer type name mangling.
parent
621cd056
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
Cython/Compiler/Buffer.py
Cython/Compiler/Buffer.py
+2
-5
tests/bugs.txt
tests/bugs.txt
+0
-1
No files found.
Cython/Compiler/Buffer.py
View file @
2398c768
...
...
@@ -581,7 +581,7 @@ class GetAndReleaseBufferUtilityCode(object):
proto_code
=
output
[
'utility_code_proto'
]
env
=
output
.
module_node
.
scope
cython_scope
=
env
.
context
.
cython_scope
# Search all types for __getbuffer__ overloads
types
=
[]
visited_scopes
=
set
()
...
...
@@ -631,10 +631,7 @@ def mangle_dtype_name(dtype):
prefix
=
"nn_"
else
:
prefix
=
""
type_decl
=
dtype
.
empty_declaration_code
()
type_decl
=
type_decl
.
replace
(
" "
,
"_"
)
type_decl
=
type_decl
.
replace
(
"::"
,
"_pyxns_"
)
return
prefix
+
type_decl
.
replace
(
"["
,
"_"
).
replace
(
"]"
,
"_"
)
return
prefix
+
dtype
.
specialization_name
()
def
get_type_information_cname
(
code
,
dtype
,
maxdepth
=
None
):
"""
...
...
tests/bugs.txt
View file @
2398c768
...
...
@@ -5,7 +5,6 @@ class_attribute_init_values_T18
unsignedbehaviour_T184
missing_baseclass_in_predecl_T262
cfunc_call_tuple_args_T408
# cpp_structs
genexpr_iterable_lookup_T600
generator_expressions_in_class
for_from_pyvar_loop_T601
...
...
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