Commit 2398c768 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by Stefan Behnel

Cleanup C++ buffer type name mangling.

parent 621cd056
...@@ -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