vendor/x11/xlib: Fix returntype of some procs

Returntype of a few procs was incorrectly set to i32 rather than a proc
that returns i32.
This commit is contained in:
Nahuel2998
2026-02-03 17:17:33 -03:00
parent 270df36468
commit 37e82c9387

View File

@@ -1112,15 +1112,15 @@ foreign xlib {
SetAfterFunction :: proc(
display: ^Display,
procedure: #type proc "c" (display: ^Display) -> i32,
) -> i32 ---
) -> proc "c" (display: ^Display) -> i32 ---
Synchronize :: proc(
display: ^Display,
onoff: b32,
) -> i32 ---
) -> proc "c" (display: ^Display) -> i32 ---
// Error handling
SetErrorHandler :: proc(
handler: #type proc "c" (display: ^Display, event: ^XErrorEvent) -> i32,
) -> i32 ---
) -> proc "c" (display: ^Display, event: ^XErrorEvent) -> i32 ---
GetErrorText :: proc(
display: ^Display,
code: i32,
@@ -1138,7 +1138,7 @@ foreign xlib {
DisplayName :: proc(string: cstring) -> cstring ---
SetIOErrorHandler :: proc(
handler: #type proc "c" (display: ^Display) -> i32,
) -> i32 ---
) -> proc "c" (display: ^Display) -> i32 ---
// Pointer grabbing
GrabPointer :: proc(
display: ^Display,