Age | Commit message (Collapse) | Author |
|
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
|
|
a custom Stream subclass
svn-id: r46777
|
|
svn-id: r46773
|
|
* Add new class PS2FileStream as substitute for class StdioStream on PS2
* Remove PS2 specific hacks from stdiostream.cpp / class StdioStream
* Remove various ps2_f*() wrapper funcs, merging them into PS2FileStream
TODO: Merge class Ps2File into PS2FileStream
svn-id: r46111
|
|
svn-id: r46109
|
|
fputs instead of fprintf
svn-id: r46107
|
|
svn-id: r46105
|
|
svn-id: r46104
|
|
fs/stdiostream.cpp to properly support eof / clearerr.
svn-id: r39143
|
|
svn-id: r35675
|
|
svn-id: r35172
|
|
::openForReading & ::openForWriting)
svn-id: r34550
|
|
eos() now only returns true _after_ trying to read past the end of the stream.
This has a large potential for regressions. Please test!
svn-id: r34549
|
|
need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
|
|
svn-id: r34399
|
|
the end of stream has been reached
svn-id: r34385
|
|
svn-id: r34346
|
|
svn-id: r34345
|
|
to backends
svn-id: r34304
|
|
svn-id: r34303
|