scummvm/backends/platform/sdl
Max Horn 44393b2dc8 ALL: Add code to help stop people from accidentally using "bad" APIs
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.

If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.

Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.

svn-id: r53961
2010-10-30 21:27:42 +00:00
..
events.cpp Fix for Valgrind Uninitialised Error from SDL_Event in sdl backend and derived backends. 2010-06-16 07:22:54 +00:00
graphics.cpp GPH: Cleanup Readme and support scripts. 2010-10-20 13:00:58 +00:00
hardwarekeys.cpp Replaced KeyStates with ActionKeys in the keymapper, removed SDL ASCII code mismatch workaround hacks, fixed the memory leaks I had previously created. 2009-08-16 07:40:13 +00:00
main.cpp ALL: Add code to help stop people from accidentally using "bad" APIs 2010-10-30 21:27:42 +00:00
module.mk BUILD: Unify how MODULE_DIRS is computed for backends 2010-07-29 13:03:21 +00:00
sdl.cpp ALL: Add code to help stop people from accidentally using "bad" APIs 2010-10-30 21:27:42 +00:00
sdl.h JANITORAL: Clean trailing whitespaces. 2010-10-12 02:18:11 +00:00