src/SDL20_syms.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 10 Mar 2019 00:18:10 -0500
changeset 113 ed19faa58a82
parent 108 d3b0971aa72c
permissions -rw-r--r--
Call SDL_StopTextInput() during init.

Otherwise, macOS might pop up a choose-an-accented-letter window if you hold
down a key, which looks really weird in an FPS.

I had never seen this happen before, so it's not clear why this has to be
done here or if it was a fluke or something. But for now it works, and it's
not like SDL 1.2 has proper text input anyhow.
     1 /*
     2   Simple DirectMedia Layer
     3   Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
     4 
     5   This software is provided 'as-is', without any express or implied
     6   warranty.  In no event will the authors be held liable for any damages
     7   arising from the use of this software.
     8 
     9   Permission is granted to anyone to use this software for any purpose,
    10   including commercial applications, and to alter it and redistribute it
    11   freely, subject to the following restrictions:
    12 
    13   1. The origin of this software must not be misrepresented; you must not
    14      claim that you wrote the original software. If you use this software
    15      in a product, an acknowledgment in the product documentation would be
    16      appreciated but is not required.
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    21 
    22 /* don't #pragma once this file, it gets #included multiple times! */
    23 
    24 #ifndef SDL20_SYM
    25 #define SDL20_SYM(rc,fn,params,args,ret)
    26 #endif
    27 
    28 #ifndef SDL20_SYM_PASSTHROUGH
    29 #define SDL20_SYM_PASSTHROUGH(rc,fn,params,args,ret) SDL20_SYM(rc,fn,params,args,ret)
    30 #endif
    31 
    32 #ifndef SDL20_SYM_VARARGS
    33 #define SDL20_SYM_VARARGS(rc,fn,params) SDL20_SYM(rc,fn,params,unused,unused)
    34 #endif
    35 
    36 SDL20_SYM(int,Init,(Uint32 a),(a),return)
    37 SDL20_SYM(int,InitSubSystem,(Uint32 a),(a),return)
    38 SDL20_SYM(Uint32,WasInit,(Uint32 a),(a),return)
    39 SDL20_SYM(char*,GetError,(void),(),return)
    40 SDL20_SYM_VARARGS(int,SetError,(const char *fmt, ...))
    41 
    42 SDL20_SYM_PASSTHROUGH(int,Error,(SDL_errorcode a),(a),return)
    43 SDL20_SYM_PASSTHROUGH(void,ClearError,(void),(),)
    44 SDL20_SYM(void,Quit,(void),(),)
    45 SDL20_SYM(void,QuitSubSystem,(Uint32 a),(a),)
    46 SDL20_SYM_PASSTHROUGH(int,VideoInit,(const char *a),(a),return)
    47 SDL20_SYM_PASSTHROUGH(void,VideoQuit,(void),(),)
    48 SDL20_SYM_PASSTHROUGH(int,AudioInit,(const char *a),(a),return)
    49 SDL20_SYM_PASSTHROUGH(void,AudioQuit,(void),(),)
    50 SDL20_SYM(const char *,GetCurrentAudioDriver,(void),(),return)
    51 SDL20_SYM(const char *,GetCurrentVideoDriver,(void),(),return)
    52 
    53 SDL20_SYM(SDL_assert_state,ReportAssertion,(SDL_assert_data *a,const char *b,const char *c, int d),(a,b,c,d),return)
    54 
    55 SDL20_SYM(void,PumpEvents,(void),(),)
    56 SDL20_SYM(void,SetEventFilter,(SDL_EventFilter a, void *b),(a,b),)
    57 
    58 SDL20_SYM(int,GetNumDisplayModes,(int a),(a),return)
    59 SDL20_SYM(int,GetDisplayMode,(int a, int b, SDL_DisplayMode *c),(a,b,c),return)
    60 SDL20_SYM(int,GetDesktopDisplayMode,(int a, SDL_DisplayMode *b),(a,b),return)
    61 SDL20_SYM(int,GetCurrentDisplayMode,(int a, SDL_DisplayMode *b),(a,b),return)
    62 
    63 SDL20_SYM(void,EnableScreenSaver,(void),(),)
    64 SDL20_SYM(void,DisableScreenSaver,(void),(),)
    65 
    66 SDL20_SYM(SDL_Window *,CreateWindow,(const char *a, int b, int c, int d, int e, Uint32 f),(a,b,c,d,e,f),return)
    67 SDL20_SYM(void,DestroyWindow,(SDL_Window *a),(a),)
    68 SDL20_SYM(void,SetWindowIcon,(SDL_Window *a,SDL_Surface *b),(a,b),)
    69 SDL20_SYM(int,UpdateWindowSurface,(SDL_Window *a),(a),return)
    70 SDL20_SYM(SDL_Surface *,GetWindowSurface,(SDL_Window *a),(a),return)
    71 SDL20_SYM(void,GetWindowPosition,(SDL_Window *a,int *b, int *c),(a,b,c),)
    72 SDL20_SYM(void,SetWindowSize,(SDL_Window *a, int b, int c),(a,b,c),)
    73 SDL20_SYM(void,GetWindowSize,(SDL_Window *a, int *b, int *c),(a,b,c),)
    74 SDL20_SYM(void,MinimizeWindow,(SDL_Window *a),(a),)
    75 SDL20_SYM(void,RaiseWindow,(SDL_Window *a),(a),)
    76 SDL20_SYM(int,SetWindowGammaRamp,(SDL_Window *a,const Uint16 *b,const Uint16 *c,const Uint16 *d),(a,b,c,d),return)
    77 SDL20_SYM(int,GetWindowGammaRamp,(SDL_Window *a,Uint16 *b,Uint16 *c,Uint16 *d),(a,b,c,d),return)
    78 SDL20_SYM(Uint32,GetWindowFlags,(SDL_Window *a),(a),return)
    79 SDL20_SYM(void,SetWindowGrab,(SDL_Window *a,SDL_bool b),(a,b),)
    80 SDL20_SYM(SDL_bool,GetWindowGrab,(SDL_Window *a),(a),return)
    81 SDL20_SYM(void,SetWindowTitle,(SDL_Window *a,const char *b),(a,b),)
    82 SDL20_SYM(int,SetWindowFullscreen,(SDL_Window *a, Uint32 b),(a,b),return)
    83 SDL20_SYM(void,SetWindowBordered,(SDL_Window *a, SDL_bool b),(a,b),return)
    84 SDL20_SYM(void,SetWindowResizable,(SDL_Window *a, SDL_bool b),(a,b),return)
    85 
    86 SDL20_SYM(SDL_PixelFormat *,AllocFormat,(Uint32 a),(a),return)
    87 SDL20_SYM(void,FreeFormat,(SDL_PixelFormat *a),(a),)
    88 SDL20_SYM(SDL_Surface *,CreateRGBSurface,(Uint32 a, int b, int c, int d, Uint32 e, Uint32 f, Uint32 g, Uint32 h),(a,b,c,d,e,f,g,h),return)
    89 SDL20_SYM(SDL_Surface *,CreateRGBSurfaceFrom,(void *a, int b, int c, int d, int e, Uint32 f, Uint32 g, Uint32 h, Uint32 i),(a,b,c,d,e,f,g,h,i),return)
    90 SDL20_SYM(SDL_Surface *,CreateRGBSurfaceWithFormat,(Uint32 a, int b, int c, int d, Uint32 e),(a,b,c,d,e),return)
    91 SDL20_SYM(SDL_Surface *,ConvertSurface,(SDL_Surface *a, const SDL_PixelFormat *b, Uint32 c),(a,b,c),return)
    92 SDL20_SYM(int,LockSurface,(SDL_Surface *a),(a),return)
    93 SDL20_SYM(void,UnlockSurface,(SDL_Surface *a),(a),)
    94 SDL20_SYM(int,UpperBlit,(SDL_Surface *a,const SDL_Rect *b,SDL_Surface *c, SDL_Rect *d),(a,b,c,d),return)
    95 SDL20_SYM(int,LowerBlit,(SDL_Surface *a,const SDL_Rect *b,SDL_Surface *c, SDL_Rect *d),(a,b,c,d),return)
    96 SDL20_SYM(SDL_bool,HasColorKey,(SDL_Surface *a),(a),return)
    97 SDL20_SYM(int,SetColorKey,(SDL_Surface *a, int b, Uint32 c),(a,b,c),return)
    98 SDL20_SYM(int,GetColorKey,(SDL_Surface *a, Uint32 *b),(a,b),return)
    99 SDL20_SYM(void,FreeSurface,(SDL_Surface *a),(a),)
   100 SDL20_SYM(int,SetSurfaceAlphaMod,(SDL_Surface *a, Uint8 b),(a,b),return)
   101 SDL20_SYM(int,GetSurfaceAlphaMod,(SDL_Surface *a, Uint8 *b),(a,b),return)
   102 SDL20_SYM(int,SetSurfaceBlendMode,(SDL_Surface *a, SDL_BlendMode b),(a,b),return)
   103 SDL20_SYM(int,GetSurfaceBlendMode,(SDL_Surface *a, SDL_BlendMode *b),(a,b),return)
   104 SDL20_SYM(SDL_Surface*,LoadBMP_RW,(SDL_RWops *a, int b),(a,b),return)
   105 SDL20_SYM(int,SaveBMP_RW,(SDL_Surface *a, SDL_RWops *b, int c),(a,b,c),return)
   106 SDL20_SYM(int,SetPaletteColors,(SDL_Palette *a, const SDL_Color *b, int c, int d),(a,b,c,d),return)
   107 SDL20_SYM(int,GL_LoadLibrary,(const char *a),(a),return)
   108 SDL20_SYM_PASSTHROUGH(void *,GL_GetProcAddress,(const char *a),(a),return)
   109 SDL20_SYM(int,GL_SetAttribute,(SDL_GLattr a, int b),(a,b),return)
   110 SDL20_SYM(int,GL_GetAttribute,(SDL_GLattr a, int *b),(a,b),return)
   111 SDL20_SYM(int,GL_SetSwapInterval,(int a),(a),return)
   112 SDL20_SYM(int,GL_GetSwapInterval,(void),(),return)
   113 SDL20_SYM(SDL_GLContext,GL_CreateContext,(SDL_Window *a),(a),return)
   114 SDL20_SYM(int,GL_MakeCurrent,(SDL_Window *a, SDL_GLContext b),(a,b),return)
   115 SDL20_SYM(void,GL_SwapWindow,(SDL_Window *a),(a),)
   116 SDL20_SYM(void,GL_DeleteContext,(SDL_GLContext a),(a),)
   117 SDL20_SYM(void,GetClipRect,(SDL_Surface *a, SDL_Rect *b),(a,b),)
   118 SDL20_SYM(SDL_bool,SetClipRect,(SDL_Surface *a, const SDL_Rect *b),(a,b),return)
   119 SDL20_SYM(int,FillRect,(SDL_Surface *a,const SDL_Rect *b,Uint32 c),(a,b,c),return)
   120 SDL20_SYM(SDL_bool,IntersectRect,(const SDL_Rect *a,const SDL_Rect *b,SDL_Rect *c),(a,b,c),return)
   121 SDL20_SYM(void,GetRGB,(Uint32 a,const SDL_PixelFormat *b,Uint8 *c,Uint8 *d,Uint8 *e),(a,b,c,d,e),)
   122 SDL20_SYM(void,GetRGBA,(Uint32 a,const SDL_PixelFormat *b,Uint8 *c,Uint8 *d,Uint8 *e,Uint8 *f),(a,b,c,d,e,f),)
   123 SDL20_SYM(Uint32,MapRGB,(const SDL_PixelFormat *a,Uint8 b,Uint8 c,Uint8 d),(a,b,c,d),return)
   124 SDL20_SYM(Uint32,MapRGBA,(const SDL_PixelFormat *a,Uint8 b,Uint8 c,Uint8 d,Uint8 e),(a,b,c,d,e),return)
   125 SDL20_SYM(void,CalculateGammaRamp,(float a, Uint16 *b),(a,b),)
   126 SDL20_SYM(Uint32,MasksToPixelFormatEnum,(int a,Uint32 b,Uint32 c,Uint32 d,Uint32 e),(a,b,c,d,e),return)
   127 SDL20_SYM(SDL_bool,PixelFormatEnumToMasks,(Uint32 a,int *b,Uint32 *c,Uint32 *d,Uint32 *e,Uint32 *f),(a,b,c,d,e,f),return)
   128 
   129 SDL20_SYM_PASSTHROUGH(void,SetModState,(SDL_Keymod a),(a),)
   130 SDL20_SYM_PASSTHROUGH(SDL_Keymod,GetModState,(void),(),return)
   131 SDL20_SYM(void,StopTextInput,(void),(),)
   132 
   133 SDL20_SYM(Uint32,GetMouseState,(int *a, int *b),(a,b),return)
   134 SDL20_SYM(Uint32,GetRelativeMouseState,(int *a, int *b),(a,b),return)
   135 SDL20_SYM(void,WarpMouseInWindow,(SDL_Window *a, int b, int c),(a,b,c),)
   136 SDL20_SYM(int,SetRelativeMouseMode,(SDL_bool a),(a),return)
   137 SDL20_SYM(int,ShowCursor,(int a),(a),return)
   138 SDL20_SYM(SDL_Cursor *,CreateCursor,(const Uint8 *a,const Uint8 *b,int c,int d,int e,int f),(a,b,c,d,e,f),return)
   139 SDL20_SYM(void,SetCursor,(SDL_Cursor *a),(a),)
   140 SDL20_SYM(SDL_Cursor *,GetCursor,(void),(),return)
   141 SDL20_SYM(void,FreeCursor,(SDL_Cursor *a),(a),)
   142 
   143 #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
   144 SDL20_SYM(SDL_Thread *,CreateThread,(SDL_ThreadFunction a, const char *b, void *c, pfnSDL_CurrentBeginThread d, pfnSDL_CurrentEndThread e),(a,b,c,d,e),return)
   145 #else
   146 SDL20_SYM(SDL_Thread *,CreateThread,(SDL_ThreadFunction a, const char *b, void *c),(a,b,c),return)
   147 #endif
   148 
   149 SDL20_SYM_PASSTHROUGH(Uint32,GetThreadID,(SDL_Thread *a),(a),return)
   150 SDL20_SYM_PASSTHROUGH(Uint32,ThreadID,(void),(),return)
   151 SDL20_SYM_PASSTHROUGH(void,WaitThread,(SDL_Thread *a, int *b),(a,b),)
   152 SDL20_SYM_PASSTHROUGH(SDL_mutex*,CreateMutex,(void),(),return)
   153 SDL20_SYM(int,LockMutex,(SDL_mutex *a),(a),return)
   154 SDL20_SYM(int,UnlockMutex,(SDL_mutex *a),(a),return)
   155 SDL20_SYM_PASSTHROUGH(void,DestroyMutex,(SDL_mutex *a),(a),)
   156 SDL20_SYM_PASSTHROUGH(SDL_sem*,CreateSemaphore,(Uint32 a),(a),return)
   157 SDL20_SYM_PASSTHROUGH(void,DestroySemaphore,(SDL_sem *a),(a),)
   158 SDL20_SYM_PASSTHROUGH(int,SemWait,(SDL_sem *a),(a),return)
   159 SDL20_SYM_PASSTHROUGH(int,SemTryWait,(SDL_sem *a),(a),return)
   160 SDL20_SYM_PASSTHROUGH(int,SemWaitTimeout,(SDL_sem *a, Uint32 b),(a,b),return)
   161 SDL20_SYM_PASSTHROUGH(int,SemPost,(SDL_sem *a),(a),return)
   162 SDL20_SYM_PASSTHROUGH(Uint32,SemValue,(SDL_sem *a),(a),return)
   163 SDL20_SYM_PASSTHROUGH(SDL_cond*,CreateCond,(void),(),return)
   164 SDL20_SYM_PASSTHROUGH(void,DestroyCond,(SDL_cond *a),(a),)
   165 SDL20_SYM_PASSTHROUGH(int,CondSignal,(SDL_cond *a),(a),return)
   166 SDL20_SYM_PASSTHROUGH(int,CondBroadcast,(SDL_cond *a),(a),return)
   167 SDL20_SYM_PASSTHROUGH(int,CondWait,(SDL_cond *a, SDL_mutex *b),(a,b),return)
   168 SDL20_SYM_PASSTHROUGH(int,CondWaitTimeout,(SDL_cond *a, SDL_mutex *b, Uint32 c),(a,b,c),return)
   169 
   170 SDL20_SYM(SDL_AudioSpec *,LoadWAV_RW,(SDL_RWops *a, int b, SDL_AudioSpec *c, Uint8 **d, Uint32 *e),(a,b,c,d,e),return)
   171 SDL20_SYM(int,OpenAudio,(SDL_AudioSpec *a, SDL_AudioSpec *b),(a,b),return)
   172 SDL20_SYM_PASSTHROUGH(SDL_AudioStatus,GetAudioStatus,(void),(),return)
   173 SDL20_SYM_PASSTHROUGH(void,PauseAudio,(int a),(a),)
   174 SDL20_SYM_PASSTHROUGH(void,FreeWAV,(Uint8 *a),(a),)
   175 SDL20_SYM_PASSTHROUGH(int,BuildAudioCVT,(SDL_AudioCVT *a, Uint16 b, Uint8 c, int d, Uint16 e, Uint8 f, int g),(a,b,c,d,e,f,g),return)
   176 SDL20_SYM_PASSTHROUGH(int,ConvertAudio,(SDL_AudioCVT *a),(a),return)
   177 SDL20_SYM_PASSTHROUGH(void,MixAudio,(Uint8 *a, const Uint8 *b, Uint32 c, int d),(a,b,c,d),)
   178 SDL20_SYM_PASSTHROUGH(void,LockAudio,(void),(),)
   179 SDL20_SYM_PASSTHROUGH(void,UnlockAudio,(void),(),)
   180 SDL20_SYM_PASSTHROUGH(void,CloseAudio,(void),(),)
   181 
   182 SDL20_SYM_PASSTHROUGH(void*,LoadObject,(const char *a),(a),return)
   183 SDL20_SYM_PASSTHROUGH(void*,LoadFunction,(void *a, const char *b),(a,b),return)
   184 SDL20_SYM_PASSTHROUGH(void,UnloadObject,(void *a),(a),)
   185 
   186 SDL20_SYM_PASSTHROUGH(SDL_bool,HasRDTSC,(void),(),return)
   187 SDL20_SYM_PASSTHROUGH(SDL_bool,HasMMX,(void),(),return)
   188 SDL20_SYM_PASSTHROUGH(SDL_bool,Has3DNow,(void),(),return)
   189 SDL20_SYM_PASSTHROUGH(SDL_bool,HasSSE,(void),(),return)
   190 SDL20_SYM_PASSTHROUGH(SDL_bool,HasSSE2,(void),(),return)
   191 SDL20_SYM_PASSTHROUGH(SDL_bool,HasAltiVec,(void),(),return)
   192 
   193 SDL20_SYM(SDL_TimerID,AddTimer,(Uint32 a, SDL_TimerCallback b, void *c),(a,b,c),return)
   194 SDL20_SYM(SDL_bool,RemoveTimer,(SDL_TimerID a),(a),return)
   195 SDL20_SYM_PASSTHROUGH(Uint32,GetTicks,(void),(),return)
   196 SDL20_SYM_PASSTHROUGH(void,Delay,(Uint32 a),(a),)
   197 
   198 SDL20_SYM_PASSTHROUGH(int,NumJoysticks,(void),(),return)
   199 SDL20_SYM(const char *,JoystickNameForIndex,(int a),(a),return)
   200 SDL20_SYM(SDL_Joystick *,JoystickOpen,(int a),(a),return)
   201 SDL20_SYM_PASSTHROUGH(int,JoystickNumAxes,(SDL_Joystick *a),(a),return)
   202 SDL20_SYM_PASSTHROUGH(int,JoystickNumBalls,(SDL_Joystick *a),(a),return)
   203 SDL20_SYM_PASSTHROUGH(int,JoystickNumHats,(SDL_Joystick *a),(a),return)
   204 SDL20_SYM_PASSTHROUGH(int,JoystickNumButtons,(SDL_Joystick *a),(a),return)
   205 SDL20_SYM_PASSTHROUGH(void,JoystickUpdate,(void),(),)
   206 SDL20_SYM_PASSTHROUGH(int,JoystickEventState,(int a),(a),return)
   207 SDL20_SYM_PASSTHROUGH(Sint16,JoystickGetAxis,(SDL_Joystick *a, int b),(a,b),return)
   208 SDL20_SYM_PASSTHROUGH(Uint8,JoystickGetHat,(SDL_Joystick *a, int b),(a,b),return)
   209 SDL20_SYM_PASSTHROUGH(int,JoystickGetBall,(SDL_Joystick *a, int b, int *c, int *d),(a,b,c,d),return)
   210 SDL20_SYM_PASSTHROUGH(Uint8,JoystickGetButton,(SDL_Joystick *a, int b),(a,b),return)
   211 SDL20_SYM(void,JoystickClose,(SDL_Joystick *a),(a),return)
   212 SDL20_SYM(void,LockJoysticks,(void),(),)
   213 SDL20_SYM(void,UnlockJoysticks,(void),(),)
   214 SDL20_SYM(SDL_JoystickID,JoystickGetDeviceInstanceID,(int a),(a),return)
   215 
   216 SDL20_SYM(SDL_RWops *,RWFromFile,(const char *a, const char *b),(a,b),return)
   217 SDL20_SYM(SDL_RWops *,RWFromFP,(FILE *a, int b),(a,b),return)
   218 SDL20_SYM(SDL_RWops *,RWFromMem,(void *a, int b),(a,b),return)
   219 SDL20_SYM(SDL_RWops *,RWFromConstMem,(const void *a, int b),(a,b),return)
   220 SDL20_SYM(SDL_RWops *,AllocRW,(void),(),return)
   221 SDL20_SYM(void,FreeRW,(SDL_RWops *a),(a),)
   222 
   223 SDL20_SYM_PASSTHROUGH(void *,malloc,(size_t a),(a),return)
   224 SDL20_SYM_PASSTHROUGH(void *,calloc,(size_t a, size_t b),(a,b),return)
   225 SDL20_SYM_PASSTHROUGH(void *,realloc,(void *a, size_t b),(a,b),return)
   226 SDL20_SYM_PASSTHROUGH(void,free,(void *a),(a),)
   227 SDL20_SYM_PASSTHROUGH(char *,getenv,(const char *a),(a),return)
   228 SDL20_SYM_PASSTHROUGH(void,qsort,(void *a, size_t b, size_t c, int (*d)(const void *, const void *)),(a,b,c,d),)
   229 SDL20_SYM_PASSTHROUGH(void *,memset,(void *a, int b, size_t c),(a,b,c),return)
   230 SDL20_SYM_PASSTHROUGH(void *,memcpy,(void *a, const void *b, size_t c),(a,b,c),return)
   231 SDL20_SYM_PASSTHROUGH(int,memcmp,(const void *a, const void *b, size_t c),(a,b,c),return)
   232 SDL20_SYM_PASSTHROUGH(size_t,strlen,(const char *a),(a),return)
   233 SDL20_SYM_PASSTHROUGH(size_t,strlcpy,(char *a, const char *b, size_t c),(a,b,c),return)
   234 SDL20_SYM_PASSTHROUGH(size_t,strlcat,(char *a, const char *b, size_t c),(a,b,c),return)
   235 SDL20_SYM_PASSTHROUGH(char *,strdup,(const char *a),(a),return)
   236 SDL20_SYM_PASSTHROUGH(char *,strrev,(char *a),(a),return)
   237 SDL20_SYM_PASSTHROUGH(char *,strupr,(char *a),(a),return)
   238 SDL20_SYM_PASSTHROUGH(char *,strlwr,(char *a),(a),return)
   239 SDL20_SYM_PASSTHROUGH(char *,strchr,(const char *a, int b),(a,b),return)
   240 SDL20_SYM_PASSTHROUGH(char *,strrchr,(const char *a, int b),(a,b),return)
   241 SDL20_SYM_PASSTHROUGH(char *,strstr,(const char *a, const char *b),(a,b),return)
   242 SDL20_SYM_PASSTHROUGH(char *,ltoa,(long a, char *b, int c),(a,b,c),return)
   243 SDL20_SYM_PASSTHROUGH(char *,ultoa,(unsigned long a, char *b, int c),(a,b,c),return)
   244 SDL20_SYM_PASSTHROUGH(long,strtol,(const char *a, char **b, int c),(a,b,c),return)
   245 SDL20_SYM_PASSTHROUGH(unsigned long,strtoul,(const char *a, char **b, int c),(a,b,c),return)
   246 SDL20_SYM_PASSTHROUGH(char*,lltoa,(Sint64 a, char *b, int c),(a,b,c),return)
   247 SDL20_SYM_PASSTHROUGH(char*,ulltoa,(Uint64 a, char *b, int c),(a,b,c),return)
   248 SDL20_SYM_PASSTHROUGH(Sint64,strtoll,(const char *a, char **b, int c),(a,b,c),return)
   249 SDL20_SYM_PASSTHROUGH(Uint64,strtoull,(const char *a, char **b, int c),(a,b,c),return)
   250 SDL20_SYM_PASSTHROUGH(double,strtod,(const char *a, char **b),(a,b),return)
   251 SDL20_SYM_PASSTHROUGH(int,strcmp,(const char *a, const char *b),(a,b),return)
   252 SDL20_SYM_PASSTHROUGH(int,strncmp,(const char *a, const char *b, size_t c),(a,b,c),return)
   253 SDL20_SYM_PASSTHROUGH(int,strcasecmp,(const char *a, const char *b),(a,b),return)
   254 SDL20_SYM_PASSTHROUGH(int,strncasecmp,(const char *a, const char *b, size_t c),(a,b,c),return)
   255 SDL20_SYM_VARARGS(int,sscanf,(const char *text, const char *fmt, ...))
   256 SDL20_SYM_VARARGS(int,snprintf,(char *text, size_t maxlen, const char *fmt, ...))
   257 SDL20_SYM_PASSTHROUGH(int,vsnprintf,(char *a, size_t b, const char *c, va_list d),(a,b,c,d),return)
   258 SDL20_SYM_PASSTHROUGH(SDL_iconv_t,iconv_open,(const char *a, const char *b),(a,b),return)
   259 SDL20_SYM_PASSTHROUGH(int,iconv_close,(SDL_iconv_t a),(a),return)
   260 SDL20_SYM_PASSTHROUGH(size_t,iconv,(SDL_iconv_t a, const char **b, size_t *c, char **d, size_t *e),(a,b,c,d,e),return)
   261 SDL20_SYM_PASSTHROUGH(char *,iconv_string,(const char *a, const char *b, const char *c, size_t d),(a,b,c,d),return)
   262 SDL20_SYM(int,setenv,(const char *a, const char *b, int c),(a,b,c),return)
   263 SDL20_SYM(int,atoi,(const char *a),(a),return)
   264 
   265 SDL20_SYM(SDL_Renderer *,CreateRenderer,(SDL_Window *a, int b, Uint32 c),(a,b,c),return)
   266 SDL20_SYM(int,GetRendererInfo,(SDL_Renderer *a, SDL_RendererInfo *b),(a,b),return)
   267 SDL20_SYM(SDL_Texture *,CreateTexture,(SDL_Renderer *a, Uint32 b, int c, int d, int e),(a,b,c,d,e),return)
   268 SDL20_SYM(int,LockTexture,(SDL_Texture *a, const SDL_Rect *b, void **c, int *d),(a,b,c,d),return)
   269 SDL20_SYM(void,UnlockTexture,(SDL_Texture *a),(a),)
   270 SDL20_SYM(int,RenderSetLogicalSize,(SDL_Renderer *a, int b, int c),(a,b,c),return)
   271 SDL20_SYM(int,SetRenderDrawColor,(SDL_Renderer *a, Uint8 b, Uint8 c, Uint8 d, Uint8 e),(a,b,c,d,e),return)
   272 SDL20_SYM(int,RenderClear,(SDL_Renderer *a),(a),return)
   273 SDL20_SYM(int,RenderCopy,(SDL_Renderer *a, SDL_Texture *b, const SDL_Rect *c, const SDL_Rect *d),(a,b,c,d),return)
   274 SDL20_SYM(void,DestroyTexture,(SDL_Texture *a),(a),)
   275 SDL20_SYM(void,DestroyRenderer,(SDL_Renderer *a),(a),)
   276 SDL20_SYM(void,RenderPresent,(SDL_Renderer *a),(a),)
   277 
   278 #undef SDL20_SYM
   279 #undef SDL20_SYM_PASSTHROUGH
   280 #undef SDL20_SYM_VARARGS
   281 
   282 /* vi: set ts=4 sw=4 expandtab: */
   283