SDL API renaming: internal functions

This commit is contained in:
Sam Lantinga
2022-12-27 15:05:51 -08:00
parent 25336d053a
commit 36d4395c97
92 changed files with 1164 additions and 1164 deletions

View File

@@ -202,7 +202,7 @@ static int SDLCALL SDL_TimerThread(void *_data)
return 0;
}
int SDL_TimerInit(void)
int SDL_InitTimers(void)
{
SDL_TimerData *data = &SDL_timer_data;
@@ -224,7 +224,7 @@ int SDL_TimerInit(void)
/* Timer threads use a callback into the app, so we can't set a limited stack size here. */
data->thread = SDL_CreateThreadInternal(SDL_TimerThread, name, 0, data);
if (!data->thread) {
SDL_TimerQuit();
SDL_QuitTimers();
return -1;
}
@@ -233,7 +233,7 @@ int SDL_TimerInit(void)
return 0;
}
void SDL_TimerQuit(void)
void SDL_QuitTimers(void)
{
SDL_TimerData *data = &SDL_timer_data;
SDL_Timer *timer;
@@ -280,7 +280,7 @@ SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_TimerCallback callback, void *para
SDL_AtomicLock(&data->lock);
if (!SDL_AtomicGet(&data->active)) {
if (SDL_TimerInit() < 0) {
if (SDL_InitTimers() < 0) {
SDL_AtomicUnlock(&data->lock);
return 0;
}
@@ -399,12 +399,12 @@ static void SDL_Emscripten_TimerHelper(void *userdata)
}
}
int SDL_TimerInit(void)
int SDL_InitTimers(void)
{
return 0;
}
void SDL_TimerQuit(void)
void SDL_QuitTimers(void)
{
SDL_TimerData *data = &SDL_timer_data;
SDL_TimerMap *entry;
@@ -524,7 +524,7 @@ static Uint32 CalculateGCD(Uint32 a, Uint32 b)
return CalculateGCD(b, (a % b));
}
void SDL_TicksInit(void)
void SDL_InitTicks(void)
{
Uint64 tick_freq;
Uint32 gcd;
@@ -555,7 +555,7 @@ void SDL_TicksInit(void)
}
}
void SDL_TicksQuit(void)
void SDL_QuitTicks(void)
{
SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION,
SDL_TimerResolutionChanged, NULL);
@@ -571,7 +571,7 @@ SDL_GetTicksNS(void)
Uint64 starting_value, value;
if (!tick_start) {
SDL_TicksInit();
SDL_InitTicks();
}
starting_value = (SDL_GetPerformanceCounter() - tick_start);
@@ -586,7 +586,7 @@ Uint64 SDL_GetTicks(void)
Uint64 starting_value, value;
if (!tick_start) {
SDL_TicksInit();
SDL_InitTicks();
}
starting_value = (SDL_GetPerformanceCounter() - tick_start);