diff options
| author | gingerBill <bill@gingerbill.org> | 2022-06-02 13:02:16 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-06-02 13:02:16 +0100 |
| commit | fb49841b1d8e84cb721f5f73200d4c8158cbb4fa (patch) | |
| tree | a89451b5b3195b6e8160a39fc34e3a846cdcded8 /core/slice | |
| parent | 01ea0d6f1e0b32c248d5ddfc0980a350361f9414 (diff) | |
Remove `strings` dependency from `core:sys/windows`
Diffstat (limited to 'core/slice')
| -rw-r--r-- | core/slice/map.odin | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/slice/map.odin b/core/slice/map.odin index 1c5512ceb..9de00b174 100644 --- a/core/slice/map.odin +++ b/core/slice/map.odin @@ -2,11 +2,9 @@ package slice import "core:intrinsics" import "core:runtime" -import "core:mem" _ :: intrinsics _ :: runtime -_ :: mem map_keys :: proc(m: $M/map[$K]$V, allocator := context.allocator) -> (keys: []K) { keys = make(type_of(keys), len(m), allocator) @@ -52,7 +50,7 @@ map_entries :: proc(m: $M/map[$K]$V, allocator := context.allocator) -> (entries map_entry_infos :: proc(m: $M/map[$K]$V, allocator := context.allocator) -> (entries: []Map_Entry_Info(K, V)) #no_bounds_check { m := m - rm := (^mem.Raw_Map)(&m) + rm := (^runtime.Raw_Map)(&m) info := runtime.type_info_base(type_info_of(M)).variant.(runtime.Type_Info_Map) gs := runtime.type_info_base(info.generated_struct).variant.(runtime.Type_Info_Struct) |