diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-31 22:21:13 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-31 22:21:13 +0100 |
| commit | 251da264ed6e0f039931683c7b0d4b97e88c8d99 (patch) | |
| tree | c7a9a088477d2452c2cf850458c62d994a211df6 /core/dynlib | |
| parent | b176af27427a6c39448a71a8023e4a9877f0a51c (diff) | |
Remove unneeded semicolons from the core library
Diffstat (limited to 'core/dynlib')
| -rw-r--r-- | core/dynlib/lib.odin | 2 | ||||
| -rw-r--r-- | core/dynlib/lib_windows.odin | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/core/dynlib/lib.odin b/core/dynlib/lib.odin index 7feed73da..00655d650 100644 --- a/core/dynlib/lib.odin +++ b/core/dynlib/lib.odin @@ -1,3 +1,3 @@ package dynlib -Library :: distinct rawptr; +Library :: distinct rawptr diff --git a/core/dynlib/lib_windows.odin b/core/dynlib/lib_windows.odin index a0d91f4c0..b9aae9cf1 100644 --- a/core/dynlib/lib_windows.odin +++ b/core/dynlib/lib_windows.odin @@ -7,19 +7,19 @@ import "core:strings" load_library :: proc(path: string, global_symbols := false) -> (Library, bool) { // NOTE(bill): 'global_symbols' is here only for consistency with POSIX which has RTLD_GLOBAL - wide_path := win32.utf8_to_wstring(path, context.temp_allocator); - handle := cast(Library)win32.LoadLibraryW(wide_path); - return handle, handle != nil; + wide_path := win32.utf8_to_wstring(path, context.temp_allocator) + handle := cast(Library)win32.LoadLibraryW(wide_path) + return handle, handle != nil } unload_library :: proc(library: Library) -> bool { - ok := win32.FreeLibrary(cast(win32.HMODULE)library); - return bool(ok); + ok := win32.FreeLibrary(cast(win32.HMODULE)library) + return bool(ok) } symbol_address :: proc(library: Library, symbol: string) -> (ptr: rawptr, found: bool) { - c_str := strings.clone_to_cstring(symbol, context.temp_allocator); - ptr = win32.GetProcAddress(cast(win32.HMODULE)library, c_str); - found = ptr != nil; - return; + c_str := strings.clone_to_cstring(symbol, context.temp_allocator) + ptr = win32.GetProcAddress(cast(win32.HMODULE)library, c_str) + found = ptr != nil + return } |