More code tidyups and NSError updates.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23921 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-10-20 10:56:27 +00:00
parent 0d0ae9d9a8
commit 0ebe68ae48
87 changed files with 746 additions and 539 deletions

View file

@ -585,8 +585,7 @@ static void _terminate()
#else
shouldAbort = NO; // exit() by default.
#endif
shouldAbort = [_GSPrivate environmentFlag: "CRASH_ON_ABORT"
defaultValue: shouldAbort];
shouldAbort = GSPrivateEnvironmentFlag("CRASH_ON_ABORT", shouldAbort);
if (shouldAbort == YES)
{
abort();
@ -601,7 +600,7 @@ static void
_NSFoundationUncaughtExceptionHandler (NSException *exception)
{
fprintf(stderr, "%s: Uncaught exception %s, reason: %s\n",
[_GSPrivate argZero],
GSPrivateArgZero(),
[[exception name] lossyCString], [[exception reason] lossyCString]);
fflush(stderr); /* NEEDED UNDER MINGW */