浏览代码

make aliases of vm types not distinct

I think they're meant to be used interchangeably, just typedefed to have more
clear names for certain contexts
Beau McCartney 11 月之前
父节点
当前提交
7b1086b489
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      core/sys/darwin/mach_darwin.odin

+ 3 - 3
core/sys/darwin/mach_darwin.odin

@@ -15,12 +15,12 @@ kern_return_t :: distinct u64
 thread_act_t :: distinct u64
 
 mach_port_t :: distinct c.uint
-vm_map_t :: distinct mach_port_t
-mem_entry_name_port_t :: distinct mach_port_t
+vm_map_t :: mach_port_t
+mem_entry_name_port_t :: mach_port_t
 
 vm_size_t :: distinct c.uintptr_t
 
-vm_address_t :: distinct vm_offset_t
+vm_address_t :: vm_offset_t
 vm_offset_t :: distinct c.uintptr_t
 
 boolean_t :: distinct c.int