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 parsehelper.c
|
||||
*
|
||||
|
|
@ -18,7 +18,7 @@ CountTokens(char* args)
|
|||
int state; /* current state of the DFA */
|
||||
|
||||
if(!args)
|
||||
return -1;
|
||||
return -1;
|
||||
|
||||
index = 0;
|
||||
state = 0;
|
||||
|
|
@ -96,7 +96,7 @@ TokenizeHelper(char* str, char** tokens, int num_tokens, int max_token_len)
|
|||
if(!tokens[index])
|
||||
{
|
||||
int i;
|
||||
SDLTest_LogError("malloc() failed.");
|
||||
SDLTest_LogError("SDL_malloc() failed.");
|
||||
for(i = 0; i < index; i++)
|
||||
SDL_free(tokens[i]);
|
||||
return 0;
|
||||
|
|
@ -215,7 +215,7 @@ SDLVisualTest_ParseArgsToArgv(char* args)
|
|||
argv = (char**)SDL_malloc((num_tokens + 2) * sizeof(char*));
|
||||
if(!argv)
|
||||
{
|
||||
SDLTest_LogError("malloc() failed.");
|
||||
SDLTest_LogError("SDL_malloc() failed.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue