diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-14 18:12:46 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-07-14 18:12:46 +0200 |
| commit | 755ee87a48db7eff9790a6e7d438a168cfaa5256 (patch) | |
| tree | c05349f789bccc0c779f4bc8d1c2a3edf7ef0581 /src/common | |
| parent | 19378b74d067bd3016f55120c5d23d8d4408f191 (diff) | |
Fix odin core changes
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/ast.odin | 2 | ||||
| -rw-r--r-- | src/common/fuzzy.odin | 2 | ||||
| -rw-r--r-- | src/common/uri.odin | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/common/ast.odin b/src/common/ast.odin index cb01c85..c3be1fe 100644 --- a/src/common/ast.odin +++ b/src/common/ast.odin @@ -712,7 +712,7 @@ node_equal_node :: proc(a, b: ^ast.Node) -> bool { */ node_to_string :: proc(node: ^ast.Node, remove_pointers := false) -> string { - builder := strings.make_builder(context.temp_allocator) + builder := strings.builder_make(context.temp_allocator) build_string(node, &builder, remove_pointers) diff --git a/src/common/fuzzy.odin b/src/common/fuzzy.odin index f6c8b11..adc6a98 100644 --- a/src/common/fuzzy.odin +++ b/src/common/fuzzy.odin @@ -118,7 +118,7 @@ make_fuzzy_matcher :: proc(pattern: string, allocator := context.temp_allocator) fuzzy_to_acronym :: proc(word: string) -> (string, bool) { - builder := strings.make_builder(context.temp_allocator) + builder := strings.builder_make(context.temp_allocator) if len(word) <= 1 { return "", false diff --git a/src/common/uri.odin b/src/common/uri.odin index b8f562b..4dbed0f 100644 --- a/src/common/uri.odin +++ b/src/common/uri.odin @@ -48,7 +48,7 @@ parse_uri :: proc(value: string, allocator: mem.Allocator) -> (Uri, bool) { create_uri :: proc(path: string, allocator: mem.Allocator) -> Uri { path_forward, _ := filepath.to_slash(path, context.temp_allocator) - builder := strings.make_builder(allocator) + builder := strings.builder_make(allocator) //bad when ODIN_OS == .Windows { @@ -79,7 +79,7 @@ delete_uri :: proc(uri: Uri) { } encode_percent :: proc(value: string, allocator: mem.Allocator) -> string { - builder := strings.make_builder(allocator) + builder := strings.builder_make(allocator) data := transmute([]u8)value index: int @@ -119,7 +119,7 @@ starts_with :: proc(value: string, starts_with: string) -> bool { @(private) decode_percent :: proc(value: string, allocator: mem.Allocator) -> (string, bool) { - builder := strings.make_builder(allocator) + builder := strings.builder_make(allocator) for i := 0; i < len(value); i += 1 { if value[i] == '%' { @@ -127,7 +127,7 @@ decode_percent :: proc(value: string, allocator: mem.Allocator) -> (string, bool v, ok := strconv.parse_i64_of_base(value[i + 1:i + 3], 16) if !ok { - strings.destroy_builder(&builder) + strings.builder_destroy(&builder) return "", false } @@ -135,7 +135,7 @@ decode_percent :: proc(value: string, allocator: mem.Allocator) -> (string, bool i += 2 } else { - strings.destroy_builder(&builder) + strings.builder_destroy(&builder) return "", false } } else { |