Commit 809bf209 authored by Robert Bradshaw's avatar Robert Bradshaw

Cleanup C++ buffer type name mangling.

parent ef6b67f7
...@@ -581,7 +581,7 @@ class GetAndReleaseBufferUtilityCode(object): ...@@ -581,7 +581,7 @@ class GetAndReleaseBufferUtilityCode(object):
proto_code = output['utility_code_proto'] proto_code = output['utility_code_proto']
env = output.module_node.scope env = output.module_node.scope
cython_scope = env.context.cython_scope cython_scope = env.context.cython_scope
# Search all types for __getbuffer__ overloads # Search all types for __getbuffer__ overloads
types = [] types = []
visited_scopes = set() visited_scopes = set()
...@@ -631,10 +631,7 @@ def mangle_dtype_name(dtype): ...@@ -631,10 +631,7 @@ def mangle_dtype_name(dtype):
prefix = "nn_" prefix = "nn_"
else: else:
prefix = "" prefix = ""
type_decl = dtype.empty_declaration_code() return prefix + dtype.specialization_name()
type_decl = type_decl.replace(" ", "_")
type_decl = type_decl.replace("::", "_pyxns_")
return prefix + type_decl.replace("[", "_").replace("]", "_")
def get_type_information_cname(code, dtype, maxdepth=None): def get_type_information_cname(code, dtype, maxdepth=None):
""" """
......
...@@ -5,7 +5,6 @@ class_attribute_init_values_T18 ...@@ -5,7 +5,6 @@ class_attribute_init_values_T18
unsignedbehaviour_T184 unsignedbehaviour_T184
missing_baseclass_in_predecl_T262 missing_baseclass_in_predecl_T262
cfunc_call_tuple_args_T408 cfunc_call_tuple_args_T408
# cpp_structs
genexpr_iterable_lookup_T600 genexpr_iterable_lookup_T600
generator_expressions_in_class generator_expressions_in_class
for_from_pyvar_loop_T601 for_from_pyvar_loop_T601
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment