From 47c74da08605aa27cc6acfbb51a0128492038d75 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 9 Feb 2023 19:56:43 +0100
Subject: [PATCH] Revert return int/void for some functions
---
src/sdl3_syms.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/sdl3_syms.h b/src/sdl3_syms.h
index 1755fc7..b31dbbf 100644
--- a/src/sdl3_syms.h
+++ b/src/sdl3_syms.h
@@ -109,8 +109,8 @@ SDL3_SYM(int,PauseAudioDevice,(SDL_AudioDeviceID a),(a),return)
SDL3_SYM(SDL_AudioSpec*,LoadWAV_RW,(SDL_RWops *a, int b, SDL_AudioSpec *c, Uint8 **d, Uint32 *e),(a,b,c,d,e),return)
SDL3_SYM(int,MixAudioFormat,(Uint8 *a, const Uint8 *b, SDL_AudioFormat c, Uint32 d, int e),(a,b,c,d,e),return)
SDL3_SYM(int,LockAudioDevice,(SDL_AudioDeviceID a),(a),return)
-SDL3_SYM(int,UnlockAudioDevice,(SDL_AudioDeviceID a),(a),return)
-SDL3_SYM(int,CloseAudioDevice,(SDL_AudioDeviceID a),(a),return)
+SDL3_SYM(void,UnlockAudioDevice,(SDL_AudioDeviceID a),(a),)
+SDL3_SYM(void,CloseAudioDevice,(SDL_AudioDeviceID a),(a),)
SDL3_SYM_PASSTHROUGH(int,SetClipboardText,(const char *a),(a),return)
SDL3_SYM_PASSTHROUGH(char*,GetClipboardText,(void),(),return)
SDL3_SYM_PASSTHROUGH(SDL_bool,HasClipboardText,(void),(),return)
@@ -276,11 +276,11 @@ SDL3_SYM_PASSTHROUGH(const char*,GetPixelFormatName,(Uint32 a),(a),return)
SDL3_SYM_RENAMED(SDL_bool,PixelFormatEnumToMasks,GetMasksForPixelFormatEnum,(Uint32 a, int *b, Uint32 *c, Uint32 *d, Uint32 *e, Uint32 *f),(a,b,c,d,e,f),return)
SDL3_SYM_RENAMED(Uint32,MasksToPixelFormatEnum,GetPixelFormatEnumForMasks,(int a, Uint32 b, Uint32 c, Uint32 d, Uint32 e),(a,b,c,d,e),return)
SDL3_SYM_RENAMED(SDL_PixelFormat*,AllocFormat,CreatePixelFormat,(Uint32 a),(a),return)
-SDL3_SYM(int,DestroyPixelFormat,(SDL_PixelFormat *a),(a),return)
+SDL3_SYM(void,DestroyPixelFormat,(SDL_PixelFormat *a),(a),)
SDL3_SYM_RENAMED(SDL_Palette*,AllocPalette,CreatePalette,(int a),(a),return)
SDL3_SYM_PASSTHROUGH(int,SetPixelFormatPalette,(SDL_PixelFormat *a, SDL_Palette *b),(a,b),return)
SDL3_SYM_PASSTHROUGH(int,SetPaletteColors,(SDL_Palette *a, const SDL_Color *b, int c, int d),(a,b,c,d),return)
-SDL3_SYM(int,DestroyPalette,(SDL_Palette *a),(a),return)
+SDL3_SYM(,DestroyPalette,(SDL_Palette *a),(a),)
SDL3_SYM_PASSTHROUGH(Uint32,MapRGB,(const SDL_PixelFormat *a, Uint8 b, Uint8 c, Uint8 d),(a,b,c,d),return)
SDL3_SYM_PASSTHROUGH(Uint32,MapRGBA,(const SDL_PixelFormat *a, Uint8 b, Uint8 c, Uint8 d, Uint8 e),(a,b,c,d,e),return)
SDL3_SYM_PASSTHROUGH(void,GetRGB,(Uint32 a, const SDL_PixelFormat *b, Uint8 *c, Uint8 *d, Uint8 *e),(a,b,c,d,e),)
@@ -328,8 +328,8 @@ SDL3_SYM_PASSTHROUGH(int,GetRenderDrawBlendMode,(SDL_Renderer *a, SDL_BlendMode
SDL3_SYM_PASSTHROUGH(int,RenderClear,(SDL_Renderer *a),(a),return)
SDL3_SYM_PASSTHROUGH(int,RenderReadPixels,(SDL_Renderer *a, const SDL_Rect *b, Uint32 c, void *d, int e),(a,b,c,d,e),return)
SDL3_SYM(int,RenderPresent,(SDL_Renderer *a),(a),return)
-SDL3_SYM(int,DestroyTexture,(SDL_Texture *a),(a),return)
-SDL3_SYM(int,DestroyRenderer,(SDL_Renderer *a),(a),return)
+SDL3_SYM(,DestroyTexture,(SDL_Texture *a),(a),)
+SDL3_SYM(,DestroyRenderer,(SDL_Renderer *a),(a),)
SDL3_SYM_PASSTHROUGH(int,GL_BindTexture,(SDL_Texture *a, float *b, float *c),(a,b,c),return)
SDL3_SYM_PASSTHROUGH(int,GL_UnbindTexture,(SDL_Texture *a),(a),return)
SDL3_SYM(SDL_RWops*,RWFromFile,(const char *a, const char *b),(a,b),return)
@@ -514,7 +514,7 @@ SDL3_SYM_PASSTHROUGH(int,UpdateWindowSurface,(SDL_Window *a),(a),return)
SDL3_SYM_PASSTHROUGH(int,UpdateWindowSurfaceRects,(SDL_Window *a, const SDL_Rect *b, int c),(a,b,c),return)
SDL3_SYM(int,SetWindowGrab,(SDL_Window *a, SDL_bool b),(a,b),return)
SDL3_SYM_PASSTHROUGH(SDL_bool,GetWindowGrab,(SDL_Window *a),(a),return)
-SDL3_SYM(int,DestroyWindow,(SDL_Window *a),(a),return)
+SDL3_SYM(,DestroyWindow,(SDL_Window *a),(a),)
SDL3_SYM_RENAMED(SDL_bool,IsScreenSaverEnabled,ScreenSaverEnabled,(void),(),return)
SDL3_SYM(int,EnableScreenSaver,(void),(),return)
SDL3_SYM(int,DisableScreenSaver,(void),(),return)