Updated module mangling, restrict module names.

This commit is contained in:
Christoffer Lerno
2024-06-27 13:37:37 +02:00
parent 3bddde20ab
commit 079cbb8f68
11 changed files with 76 additions and 90 deletions

View File

@@ -633,9 +633,8 @@ void type_mangle_introspect_name_to_buffer(Type *type)
type = type->function.prototype->raw_type;
if (type->function.decl)
{
Module *module = decl_module(type->function.decl);
scratch_buffer_append(module->extname ? module->extname : module->name->module);
scratch_buffer_append_char('$');
module_copy_extern_name_to_buffer(decl_module(type->function.decl));
scratch_buffer_append("$");
scratch_buffer_append(type->name);
}
else