mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Remove unneeded semicolons from the core library
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
// +build windows
|
||||
package win32
|
||||
|
||||
import "core:strings";
|
||||
import "core:strings"
|
||||
|
||||
foreign {
|
||||
@(link_name="_wgetcwd") _get_cwd_wide :: proc(buffer: Wstring, buf_len: int) -> ^Wstring ---
|
||||
}
|
||||
|
||||
get_cwd :: proc(allocator := context.temp_allocator) -> string {
|
||||
buffer := make([]u16, MAX_PATH_WIDE, allocator);
|
||||
_get_cwd_wide(Wstring(&buffer[0]), MAX_PATH_WIDE);
|
||||
file := utf16_to_utf8(buffer[:], allocator);
|
||||
return strings.trim_right_null(file);
|
||||
buffer := make([]u16, MAX_PATH_WIDE, allocator)
|
||||
_get_cwd_wide(Wstring(&buffer[0]), MAX_PATH_WIDE)
|
||||
file := utf16_to_utf8(buffer[:], allocator)
|
||||
return strings.trim_right_null(file)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user