Commit Graph

6 Commits

Author SHA1 Message Date
Max Horn
427dc1ae93 GUI: Move major widgets to new directory gui/widgets
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files

svn-id: r54264
2010-11-16 10:11:57 +00:00
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
Oystein Eftevaag
915c60c629 Using #include instead of #import to include some mac os x headers to avoid silly gcc warnings, that we'd otherwise have to remove -pedantic to get rid of
svn-id: r46597
2009-12-26 17:18:18 +00:00
Johannes Schickel
1a1b041d00 Add "End of namespace" comment.
svn-id: r46594
2009-12-26 16:57:34 +00:00
Oystein Eftevaag
b21679e56e Buildbot compile fix for os x cross compile
svn-id: r46592
2009-12-26 16:00:41 +00:00
Oystein Eftevaag
925c1744ec Committing the actual new browser_osx.mm file, oops
svn-id: r46583
2009-12-26 13:48:14 +00:00