20 if (locales ==
NULL) {
24 unsigned int total = 0;
25 SDL_Log(
"Locales, in order of preference:");
26 for (
l = locales;
l->language;
l++) {
27 const char *
c =
l->country;
28 SDL_Log(
" - %s%s%s",
l->language,
c ?
"_" :
"",
c ?
c :
"");
31 SDL_Log(
"%u locales seen.", total);
36 int main(
int argc,
char **argv)
45 if ((argc == 2) && (
SDL_strcmp(argv[1],
"--listen") == 0)) {
53 SDL_Log(
"Saw SDL_LOCALECHANGED event!");
#define SDL_LogSetPriority
#define SDL_GetPreferredLocales
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
@ SDL_LOG_CATEGORY_APPLICATION
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int int int return Display Window Cursor return Display Window return Display Drawable GC int int unsigned int unsigned int return Display Drawable GC int int _Xconst char int return Display Drawable GC int int unsigned int unsigned int return Display return Display Cursor return Display GC return XModifierKeymap return char Display Window int return Display return Display int int int return Display long XVisualInfo int return Display Window Atom long long Bool Atom Atom int unsigned long unsigned long unsigned char * l)
int main(int argc, char **argv)
static void log_locales(void)