diff options
| author | gingerBill <bill@gingerbill.org> | 2018-09-15 10:46:46 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-09-15 10:46:46 +0100 |
| commit | 71d987bd2eece5a30f4c872f91f9b08a06efc873 (patch) | |
| tree | bab662631fd0f723847bbc024e13ec827ad16788 /core/runtime | |
| parent | 637899467c2329ad0f405ae5d4d6e76e1b091243 (diff) | |
Fix runtime proc names; Change calling convention of `context` parameter
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin index 23b462c79..bfe28aafa 100644 --- a/core/runtime/core.odin +++ b/core/runtime/core.odin @@ -196,7 +196,6 @@ Context :: struct { user_data: any, user_index: int, - parent: ^Context, derived: any, // May be used for derived data types } @@ -734,7 +733,7 @@ __get_map_key :: proc "contextless" (key: $K) -> Map_Key { } -__default_hash :: proc(data: []byte) -> u64 { +default_hash :: proc(data: []byte) -> u64 { fnv64a :: proc(data: []byte) -> u64 { h: u64 = 0xcbf29ce484222325; for b in data { @@ -744,7 +743,8 @@ __default_hash :: proc(data: []byte) -> u64 { } return fnv64a(data); } -__default_hash_string :: proc(s: string) -> u64 do return __default_hash(([]byte)(s)); +default_hash_string :: proc(s: string) -> u64 do return default_hash(([]byte)(s)); + __slice_resize :: proc(array_: ^$T/[]$E, new_count: int, allocator: mem.Allocator, loc := #caller_location) -> bool { array := (^mem.Raw_Slice)(array_); |