Fix pointer arithmetic; remove suffix #tags for proc types

This commit is contained in:
gingerBill
2017-10-29 17:00:54 +00:00
parent d2588f9d1d
commit ae24a8e5ae
4 changed files with 18 additions and 67 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ dlopen :: inline proc(filename: string, flags: int) -> rawptr {
free(cstr);
return handle;
}
dlsym :: inline proc(handle: rawptr, symbol: string) -> (proc() #cc_c) {
dlsym :: inline proc(handle: rawptr, symbol: string) -> rawptr {
assert(handle != nil);
cstr := strings.new_c_string(symbol);
proc_handle := _unix_dlsym(handle, cstr);