SDL/src
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
..
atomic
audio Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
camera Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
core Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
cpuinfo
dialog
dynapi Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
events Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
file
filesystem Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
haptic Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
hidapi Prevent crashes if freed objects are passed to SDL API functions 2024-06-03 08:54:46 -07:00
joystick Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
libm
loadso
locale
main
misc
power
render Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
sensor Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
stdlib
storage
test Fixed warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2024-05-30 07:44:00 -07:00
thread Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
time time/windows/SDL_systime.c: remove minwinbase.h & timezoneapi.h includes 2024-05-28 11:27:37 +03:00
timer Added more error checking for SDL timer functions 2024-05-27 07:57:33 -07:00
video Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
SDL.c Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
SDL_assert.c
SDL_assert_c.h
SDL_error.c
SDL_error_c.h
SDL_guid.c
SDL_hashtable.c Prevent crashes if freed objects are passed to SDL API functions 2024-06-03 08:54:46 -07:00
SDL_hashtable.h
SDL_hints.c Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
SDL_hints_c.h
SDL_internal.h Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
SDL_list.c
SDL_list.h
SDL_log.c
SDL_log_c.h
SDL_properties.c Introduce formal policy for APIs that return strings. 2024-06-03 14:20:49 -04:00
SDL_properties_c.h Added SDL_DumpProperties() for internal debugging 2024-05-29 10:30:31 -07:00
SDL_utils.c Log any leaked objects at shutdown 2024-06-03 08:54:46 -07:00
SDL_utils_c.h Prevent crashes if freed objects are passed to SDL API functions 2024-06-03 08:54:46 -07:00