mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
update sdl to https://github.com/libsdl-org/SDL 22March 2022
This commit is contained in:
parent
ee4253c982
commit
2614274639
1225 changed files with 148950 additions and 51674 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* See COPYING.txt for the full license governing this code. */
|
||||
/* See LICENSE.txt for the full license governing this code. */
|
||||
/**
|
||||
* \file harness_argparser.c
|
||||
*
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/* String compare s1 and s2 ignoring leading hyphens */
|
||||
static int
|
||||
StrCaseCmpIgnoreHyphen(char* s1, char* s2)
|
||||
StrCaseCmpIgnoreHyphen(const char* s1, const char* s2)
|
||||
{
|
||||
/* treat NULL pointer as empty strings */
|
||||
if(!s1)
|
||||
|
|
@ -199,7 +199,7 @@ ParseArg(char** argv, int index, SDLVisualTest_HarnessState* state)
|
|||
|
||||
/* TODO: Trailing/leading spaces and spaces between equals sign not supported. */
|
||||
static int
|
||||
ParseConfig(char* file, SDLVisualTest_HarnessState* state)
|
||||
ParseConfig(const char* file, SDLVisualTest_HarnessState* state)
|
||||
{
|
||||
SDL_RWops* rw;
|
||||
SDLVisualTest_RWHelperBuffer buffer;
|
||||
|
|
@ -234,7 +234,7 @@ ParseConfig(char* file, SDLVisualTest_HarnessState* state)
|
|||
argv = (char**)SDL_malloc((num_params + 1) * sizeof(char*));
|
||||
if(!argv)
|
||||
{
|
||||
SDLTest_LogError("malloc() failed.");
|
||||
SDLTest_LogError("SDL_malloc() failed.");
|
||||
SDL_RWclose(rw);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -355,4 +355,4 @@ SDLVisualTest_FreeHarnessState(SDLVisualTest_HarnessState* state)
|
|||
SDLVisualTest_EmptyActionQueue(&state->action_queue);
|
||||
SDLVisualTest_FreeSUTConfig(&state->sut_config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue