Max Horn
76780268f2
COMMON: Refactor scummsys.h
2011-05-09 16:23:22 +02:00
Max Horn
3920cfe69e
COMMON: Do not #undef _MSC_VER
2011-05-09 16:23:22 +02:00
Max Horn
49ab6d0289
COMMON: If config.h is present, don't use hardcoded settings from scummsys.h
2011-05-09 16:23:22 +02:00
Max Horn
dfff22e56b
COMMON: Unify definition of scumm_str(n)icmp
2011-05-09 16:23:22 +02:00
Max Horn
db82d282ea
N64: Remove (u)int64 typedefs from common/scummsys.h
2011-05-09 16:23:21 +02:00
Max Horn
59e77ed667
ALL: Mark printf and various other symbols as forbidden
...
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!
Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Max Horn
a8b3501252
COMMON: Drop totally obsolete & outdated DEC C++ 'support'
2011-04-12 16:41:36 +02:00
md5
23aabc950a
COMMON: Removed custom PI define (M_PI should be used instead)
2011-03-19 02:39:38 +02:00
md5
3924fc0bad
COMMON: Enable math constants under Visual Studio
2011-03-19 01:56:10 +02:00
Johannes Schickel
9f6dc040ff
CONFIGURE: Add basic support for ICC.
...
svn-id: r55862
2011-02-10 01:05:48 +00:00
Lars Persson
714263d5e9
COMMON: Use user include instead of system include to remove lots of compiler warnings for symbian
...
svn-id: r54371
2010-11-19 12:47:52 +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
Jordi Vilalta Prat
8388e0dfea
JANITORAL: Clean trailing whitespaces.
...
svn-id: r53160
2010-10-12 02:18:11 +00:00
Yotam Barnoy
f7f743ac31
PSP: switch from wrapping memcpy to defining our own memcpy
...
The advantage is that we get to do inlining and even use lwl and lwr instructions where appropriate. We have to do it ourselves because the PSP doesn't tolerate built-in instructions, but also we have a more efficient memcpy than the lib's.
svn-id: r52817
2010-09-20 14:10:44 +00:00
Eugene Sandulenko
26dc4c2425
DINGOO: new port. Patch #3039277
...
svn-id: r52210
2010-08-19 12:43:37 +00:00
Max Horn
0b48a71c99
Remove PalmOS port
...
svn-id: r50964
2010-07-17 18:41:38 +00:00
Fabio Battaglia
a108df30a7
Add Nintendo 64 port to trunk.
...
svn-id: r46773
2009-12-30 21:11:38 +00:00
Max Horn
5b562407c1
COMMON: Replace NORETURN by NORETURN_PRE & NORETURN_POST
...
svn-id: r46205
2009-11-29 21:56:10 +00:00
Max Horn
016f343ca7
Remove SCUMMVM_USE_LONG_INT
...
svn-id: r46103
2009-11-23 22:27:52 +00:00
Max Horn
c3905f60ee
Move definition of stdint types to the only file that needs them (mpeg_player.h)
...
svn-id: r45820
2009-11-10 22:18:41 +00:00
Johannes Schickel
8b8f154891
Add some FIXME comments about defining types from stdint.h on our own.
...
svn-id: r45816
2009-11-10 21:14:48 +00:00
Max Horn
8f609497ee
Backported NDS changes from 1.0.0 branch to trunk
...
svn-id: r44426
2009-09-27 22:42:21 +00:00
Filippos Karapetis
3d0f106edc
Removed the MSVC-specific pragmas for disabling warnings. These are now in ScummVM_Global.vsprops and thus not needed in scummsys.h
...
svn-id: r44283
2009-09-24 02:06:07 +00:00
Johannes Schickel
dc8edb7203
Fix warning in gcc 3.3.5, by changing FORCEINLINE definition.
...
svn-id: r44262
2009-09-22 17:10:08 +00:00
Norbert Lange
75aafd9c33
fix duplicate definition of FORCEINLINE on mingw toolchains
...
svn-id: r44033
2009-09-11 12:58:08 +00:00
Max Horn
1011508325
Slightly modified version of Patch #2838562 : Improve endian.h and stream.h
...
svn-id: r44027
2009-09-11 08:55:47 +00:00
Joost Peters
1a5f531d23
Allow building of psp backend via configure (Part 1 - Still need to add the fixup + EBOOT packing steps).
...
Thanks dhewg and fingolfin for assistance. :)
svn-id: r39693
2009-03-25 21:58:16 +00:00
Max Horn
b64b7d2895
Removed #include nds/jtypes.h from common/scummsys.h -- it already gets loaded by portdefs.h
...
svn-id: r39562
2009-03-20 10:13:10 +00:00
Travis Howell
21a13c3219
Disable MSVC warning, which is frequently paranoid.
...
svn-id: r38575
2009-02-20 03:56:42 +00:00
Torbjörn Andersson
5bf56fe991
Changed OverlayColor from int16 to uint16 to fix the strange colours that
...
appeared in the GUI with r36288. At least, it fixes the problem for me. I hope I
didn't accidentally break anything else.
svn-id: r36298
2009-02-13 06:17:43 +00:00
Johannes Schickel
3334af5507
Removed last traces of X11 backend.
...
svn-id: r35287
2008-12-08 21:48:29 +00:00
Filippos Karapetis
bd3f83b508
Turned on MSVC warning 4505 - "Unreferenced local function has been removed", as it's very useful in finding dead code
...
svn-id: r35160
2008-11-23 15:40:35 +00:00
Filippos Karapetis
71dcfd13a2
Re-enabled MSVC warning 4125 - "decimal digits terminates octal escape sequence". This was thrown for a string with incorrect extended characters in the SAGA engine, which has been corrected now, so the warning itself is valid and quite informative.
...
svn-id: r35159
2008-11-23 15:26:51 +00:00
Max Horn
a6502da9ac
* got rid of CDECL
...
* got rid of scumm_strrev
* added DISABLE_TEXT_CONSOLE flag which disables printf, warning, debug (but not error)
svn-id: r35038
2008-11-13 11:26:47 +00:00
Filippos Karapetis
0b58aea011
Turned off overzealous warning 4800 - "forcing value to bool 'true' or 'false' (performance warning)"
...
svn-id: r32759
2008-06-22 17:57:06 +00:00
Eugene Sandulenko
5e666ef774
Patch #1971285 : "Nintendo Wii port"
...
svn-id: r32547
2008-06-04 20:28:20 +00:00
Max Horn
05b159609b
Removed remaining traces of the dead MorphOS backend, which itself was removed about one year ago
...
svn-id: r31114
2008-03-12 18:42:47 +00:00
Filippos Karapetis
7a57d26585
Several warnings which have been disabled for MSVC are never thrown (at least not anymore). Removing all the unneeded ones
...
svn-id: r30248
2008-01-05 16:12:22 +00:00
Filippos Karapetis
61e8724089
Turn off an MSVC warning, thrown with some escape sequences
...
svn-id: r29932
2007-12-21 02:06:08 +00:00
Filippos Karapetis
276c67407b
Fix compilation under MSVC9
...
svn-id: r29923
2007-12-20 15:38:22 +00:00
Max Horn
6d37f5ccd8
Do not #include time.h globally (ideally, we should provide a localtime clone in OSystem so we can completly get rid of this)
...
svn-id: r29919
2007-12-20 14:29:58 +00:00
Chris Apers
3c6bfc3742
Only for ARM code
...
svn-id: r29787
2007-12-09 11:24:51 +00:00
Neil Millstone
5ddb1b0057
Added extra includes for the DS port now that stdafx.h is no longer included
...
svn-id: r29205
2007-10-13 15:44:56 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Chris Apers
500481c4ec
Cleanup: remove obsolete code (PalmOS 68K version not supported anymore)
...
svn-id: r28803
2007-09-01 19:13:04 +00:00
Max Horn
e1bcd70436
Re-added __attribute__(packed)
...
svn-id: r27830
2007-07-01 18:18:43 +00:00
Max Horn
d9718b0684
Do not use SCUMMVM_USE_LONG_INT on _MSC_VER anymore (if it *is* needed after all, speak up -- that FIXME has been in there for far too long, however)
...
svn-id: r27641
2007-06-22 23:27:32 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Chris Apers
e0a77867cc
Cleanup, remove PalmOS dependencies from the ScummVM core
...
svn-id: r26690
2007-05-01 09:37:40 +00:00
Max Horn
728d01cb17
Removing some unnecessary #includes
...
svn-id: r26044
2007-03-09 23:46:45 +00:00