diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2016-05-17 15:32:58 -0700 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-07-15 08:15:29 +0200 |
commit | 2398c768f7c887c020b6b048f8530166fe13c953 (patch) | |
tree | 424c8ab8a3a11b963fec38f249322bf683ad4683 | |
parent | 621cd056fbf02efe91ffd029886476dc38bbb409 (diff) | |
download | cython-2398c768f7c887c020b6b048f8530166fe13c953.tar.gz |
Cleanup C++ buffer type name mangling.
-rw-r--r-- | Cython/Compiler/Buffer.py | 7 | ||||
-rw-r--r-- | tests/bugs.txt | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/Cython/Compiler/Buffer.py b/Cython/Compiler/Buffer.py index d755dbafc..232defaa0 100644 --- a/Cython/Compiler/Buffer.py +++ b/Cython/Compiler/Buffer.py @@ -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): """ diff --git a/tests/bugs.txt b/tests/bugs.txt index 6fa49dca4..5d3bb993e 100644 --- a/tests/bugs.txt +++ b/tests/bugs.txt @@ -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 |