scummvm/base
Christoph Mallon 52ebc0da38 BASE: Correct usage of strtol().
- endptr needs not be initialised before calling strtol(), it is always set by strtol().
- endptr is never a null pointer after calling strtol().
- There is no need to rely on strtol() setting EINVAL (which is not guaranteed).
  Testing whether strtol() parsed till the end of the string is sufficient (it is guaranteed that the string is not empty at this point).
- It is sufficient to just test for ERANGE without inspecting the return value, because a successful call to strtol() does not change errno.

Signed-off-by: Alyssa Milburn <fuzzie@fuzzie.org>
2011-06-23 17:17:11 +02:00
..
commandLine.cpp BASE: Correct usage of strtol(). 2011-06-23 17:17:11 +02:00
commandLine.h COMMON: Modify Base::processSettings, get rid of Common::kArgumentNotProcessed 2011-05-23 19:39:25 +02:00
internal_revision.h.in CREATE_PROJECT: Update revision number support (fixes bug #3280881) 2011-04-24 16:59:46 -04:00
internal_version.h RELEASE: This is 1.4.0git 2011-05-01 14:44:20 +03:00
internal_version.h.in CREATE_PROJECT: Update revision number support (fixes bug #3280881) 2011-04-24 16:59:46 -04:00
main.cpp ALL: Remove trailing whitespaces 2011-06-20 00:59:48 +02:00
main.h GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
module.mk Moved base/game.* to engines/game.* 2008-09-17 17:31:29 +00:00
plugins.cpp ALL: Remove trailing whitespaces 2011-06-20 00:59:48 +02:00
plugins.h ALL: Remove trailing whitespaces 2011-06-20 00:59:48 +02:00
version.cpp BASE: add TAINTED feature to gScummVMFeatures 2011-06-16 10:17:19 -05:00
version.h GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00