diff options
| author | gingerBill <bill@gingerbill.org> | 2020-10-13 14:40:13 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-10-13 14:40:13 +0100 |
| commit | fa33476438521fcc6ec886e43f64efb82e0c16dd (patch) | |
| tree | 27ad65889c3b1b29f0ffbca1980b92a692a11519 /core/path/filepath/path.odin | |
| parent | 1b4bccbc9401b3b00735038906d7ad6c2e309e95 (diff) | |
Improve default temp allocator; Fix filepath.abs behaviour on Windows
Diffstat (limited to 'core/path/filepath/path.odin')
| -rw-r--r-- | core/path/filepath/path.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/path/filepath/path.odin b/core/path/filepath/path.odin index 283eb3a9e..2142a674c 100644 --- a/core/path/filepath/path.odin +++ b/core/path/filepath/path.odin @@ -124,7 +124,7 @@ clean :: proc(path: string, allocator := context.allocator) -> string { r, dot_dot := 0, 0; if rooted { - lazy_buffer_append(out, '/'); + lazy_buffer_append(out, SEPARATOR); r, dot_dot = 1, 1; } @@ -144,7 +144,7 @@ clean :: proc(path: string, allocator := context.allocator) -> string { } case !rooted: if out.w > 0 { - lazy_buffer_append(out, '/'); + lazy_buffer_append(out, SEPARATOR); } lazy_buffer_append(out, '.'); lazy_buffer_append(out, '.'); @@ -152,7 +152,7 @@ clean :: proc(path: string, allocator := context.allocator) -> string { } case: if rooted && out.w != 1 || !rooted && out.w != 0 { - lazy_buffer_append(out, '/'); + lazy_buffer_append(out, SEPARATOR); } for ; r < n && !is_separator(path[r]); r += 1 { lazy_buffer_append(out, path[r]); |