aboutsummaryrefslogtreecommitdiff
path: root/common/scummsys.h
AgeCommit message (Collapse)Author
2011-06-18COMMON: Add vformat() function (Common::String analog to vsprintf)Max Horn
2011-06-01COMMON: Implement two simple workaround wrappers for _vsnprintf and ↵Johannes Schickel
_snprintf for MSVC. This should assure vsnprintf and snprintf will now also always null terminate the result even for MSVC. Currently the functions are placed in scummsys.h, but that causes us to include two standard C library headers there (for MSVC at least). This is not particulary nice, so we should think of a better solution here.
2011-06-01COMMON: Add note about us defining vsnprintf as _vsnprintf for older MSVC ↵Johannes Schickel
versions.
2011-06-01COMMON: Add comment about MSVC's _snprintf.Johannes Schickel
This includes a FIXME, since _snprintf behaves differently to snprintf. Not only in the return value (which is a minor difference, since we usually do not use it), but also since it does not always include a terminating null.
2011-06-01COMMON: Move SDL endian check a bit downMax Horn
2011-05-31COMMON: Include SDL_endian.h instead of SDL_byteorder.hMax Horn
2011-05-31COMMON: Simplify OverlayColor definitionMax Horn
This typedef still should be moved somewhere else. Maybe a header file of its own?
2011-05-31COMMON: Move scumm_str(n)icmp declaration to str.hMax Horn
2011-05-31COMMON: Move some weird WinCE/MSVC snprintf-#define aroundMax Horn
2011-05-31COMMON: Shorten endianess / mem align guessing logic in scummsys.hMax Horn
2011-05-31COMMON: Move more stuff from scummsys.h to portdefs.hMax Horn
2011-05-31COMMON: Move some code from scummsys.h to relevant portdefs.h filesMax Horn
2011-05-23COMMON: Provide our own implementations for scumm_str(n)icmpMax Horn
This takes up a tiny little bit of extra binary size, but gets rid of some awful #ifdef hackery.
2011-05-16IPHONE/OSX: Updated xcode projectOystein Eftevaag
2011-05-14COMMON: RemoveAvoid redundant typedefs if config.h is presentMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-10COMMON: Refactor typedefs a bitMax Horn
2011-05-09COMMON: Refactor scummsys.hMax Horn
2011-05-09COMMON: Do not #undef _MSC_VERMax Horn
2011-05-09COMMON: If config.h is present, don't use hardcoded settings from scummsys.hMax Horn
2011-05-09COMMON: Unify definition of scumm_str(n)icmpMax Horn
2011-05-09N64: Remove (u)int64 typedefs from common/scummsys.hMax Horn
2011-05-02ALL: Mark printf and various other symbols as forbiddenMax Horn
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-04-12COMMON: Drop totally obsolete & outdated DEC C++ 'support'Max Horn
2011-03-19COMMON: Removed custom PI define (M_PI should be used instead)md5
2011-03-19COMMON: Enable math constants under Visual Studiomd5
2011-02-10CONFIGURE: Add basic support for ICC.Johannes Schickel
svn-id: r55862
2010-11-19COMMON: Use user include instead of system include to remove lots of ↵Lars Persson
compiler warnings for symbian svn-id: r54371
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
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-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-09-20PSP: switch from wrapping memcpy to defining our own memcpyYotam Barnoy
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-08-19DINGOO: new port. Patch #3039277Eugene Sandulenko
svn-id: r52210
2010-07-17Remove PalmOS portMax Horn
svn-id: r50964
2009-12-30Add Nintendo 64 port to trunk.Fabio Battaglia
svn-id: r46773
2009-11-29COMMON: Replace NORETURN by NORETURN_PRE & NORETURN_POSTMax Horn
svn-id: r46205
2009-11-23Remove SCUMMVM_USE_LONG_INTMax Horn
svn-id: r46103
2009-11-10Move definition of stdint types to the only file that needs them (mpeg_player.h)Max Horn
svn-id: r45820
2009-11-10Add some FIXME comments about defining types from stdint.h on our own.Johannes Schickel
svn-id: r45816
2009-09-27Backported NDS changes from 1.0.0 branch to trunkMax Horn
svn-id: r44426
2009-09-24Removed the MSVC-specific pragmas for disabling warnings. These are now in ↵Filippos Karapetis
ScummVM_Global.vsprops and thus not needed in scummsys.h svn-id: r44283
2009-09-22Fix warning in gcc 3.3.5, by changing FORCEINLINE definition.Johannes Schickel
svn-id: r44262
2009-09-11fix duplicate definition of FORCEINLINE on mingw toolchainsNorbert Lange
svn-id: r44033
2009-09-11Slightly modified version of Patch #2838562: Improve endian.h and stream.hMax Horn
svn-id: r44027
2009-03-25Allow building of psp backend via configure (Part 1 - Still need to add the ↵Joost Peters
fixup + EBOOT packing steps). Thanks dhewg and fingolfin for assistance. :) svn-id: r39693
2009-03-20Removed #include nds/jtypes.h from common/scummsys.h -- it already gets ↵Max Horn
loaded by portdefs.h svn-id: r39562
2009-02-20Disable MSVC warning, which is frequently paranoid.Travis Howell
svn-id: r38575
2009-02-13Changed OverlayColor from int16 to uint16 to fix the strange colours thatTorbjörn Andersson
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
2008-12-08Removed last traces of X11 backend.Johannes Schickel
svn-id: r35287
2008-11-23Turned on MSVC warning 4505 - "Unreferenced local function has been ↵Filippos Karapetis
removed", as it's very useful in finding dead code svn-id: r35160
2008-11-23Re-enabled MSVC warning 4125 - "decimal digits terminates octal escape ↵Filippos Karapetis
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