SDL/src/core
Ryan C. Gordon e23257307e Introduce formal policy for APIs that return strings.
This declares that any `const char *` returned from SDL is owned by SDL, and
promises to be valid _at least_ until the next time the event queue runs, or
SDL_Quit() is called, even if the thing that owns the string gets destroyed
or changed before then.

This is noted in the headers as "the SDL_GetStringRule", so this will both be
greppable to find a detailed explaination in docs/README-strings.md and
wikiheaders will automatically turn it into a link we can point at the
appropriate documentation.

Fixes #9902.

(and several FIXMEs, both known and yet-undocumented.)
2024-06-03 14:20:49 -04:00
..
android Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
freebsd cmake: add -Wimplicit-fallthrough warning 2024-03-18 20:34:50 +01:00
gdk windows: Before SDL_main has run, use WideCharToMultibyte, not SDL_iconv. 2024-05-22 20:08:15 -04:00
haiku thread: Reworked SDL_CreateThread to be consistent across platforms. 2024-05-22 11:39:43 -04:00
linux Fixed memory leak cleaning up mouse and keyboard instances 2024-05-07 09:26:18 -07:00
n3ds Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
ngage Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
openbsd Added SDL_GetKeyboardName() and SDL_GetMouseName() 2024-03-23 16:31:00 -07:00
ps2 Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
psp Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
unix Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
windows SDL_windows.h: set _WIN32_WINNT to 0xA00 dxgi1_6.h is available 2024-05-30 00:05:55 +03:00
winrt Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00
SDL_core_unsupported.c Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
SDL_runapp.c Renamed DECLSPEC to SDL_DECLSPEC 2024-05-17 17:09:09 -07:00