mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 03:12:22 -07:00
Add intrinsics.type_hasher_proc; Make map work with generic hasher procedure
This commit is contained in:
+6
-2
@@ -729,9 +729,13 @@ void init_universal(void) {
|
||||
{
|
||||
void set_procedure_abi_types(Type *type);
|
||||
|
||||
Type *args[2] = {t_rawptr, t_rawptr};
|
||||
t_equal_proc = alloc_type_proc_from_types(args, 2, t_bool, false, ProcCC_Contextless);
|
||||
Type *equal_args[2] = {t_rawptr, t_rawptr};
|
||||
t_equal_proc = alloc_type_proc_from_types(equal_args, 2, t_bool, false, ProcCC_Contextless);
|
||||
set_procedure_abi_types(t_equal_proc);
|
||||
|
||||
Type *hasher_args[2] = {t_rawptr, t_uintptr};
|
||||
t_hasher_proc = alloc_type_proc_from_types(hasher_args, 2, t_uintptr, false, ProcCC_Contextless);
|
||||
set_procedure_abi_types(t_hasher_proc);
|
||||
}
|
||||
|
||||
// Constants
|
||||
|
||||
Reference in New Issue
Block a user