mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
Remove core:mem dependency from strings intern.odin
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package strings
|
||||
|
||||
import "base:runtime"
|
||||
import "core:mem"
|
||||
|
||||
// Custom string entry struct
|
||||
Intern_Entry :: struct {
|
||||
@@ -35,7 +34,7 @@ Inputs:
|
||||
Returns:
|
||||
- err: An allocator error if one occured, `nil` otherwise
|
||||
*/
|
||||
intern_init :: proc(m: ^Intern, allocator := context.allocator, map_allocator := context.allocator, loc := #caller_location) -> (err: mem.Allocator_Error) {
|
||||
intern_init :: proc(m: ^Intern, allocator := context.allocator, map_allocator := context.allocator, loc := #caller_location) -> (err: runtime.Allocator_Error) {
|
||||
m.allocator = allocator
|
||||
m.entries = make(map[string]^Intern_Entry, 16, map_allocator, loc) or_return
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user